Source tidying.

This commit is contained in:
Steve 2021-05-01 13:32:57 +01:00
parent b145541ed4
commit 69c2fdf680
4 changed files with 108 additions and 107 deletions

View File

@ -261,7 +261,7 @@ static void checkCollisions(Bullet *b)
}
}
void doBulletHitEffect(Bullet *b)
static void doBulletHitEffect(Bullet *b)
{
switch (b->type)
{

View File

@ -78,7 +78,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define NUM_TEXTURE_BUCKETS 32
#define NUM_ATLAS_BUCKETS 64
#define NUM_GLYPH_BUCKETS 128
#define MAX_GLYPHS 400
#define MAX_STARS 500

View File

@ -35,10 +35,10 @@ void startSectionTransition(void)
void endSectionTransition(void)
{
long elasped = 250 - (SDL_GetTicks() - transitionStartTime);
long elapsed = 250 - (SDL_GetTicks() - transitionStartTime);
if (elasped > 0)
if (elapsed > 0)
{
SDL_Delay(elasped);
SDL_Delay(elapsed);
}
}

View File

@ -117,7 +117,7 @@ char *timeToDate(long millis)
timeinfo = localtime(&time);
strftime(DATE, MAX_NAME_LENGTH, "%d %b %Y, %I:%M%p", timeinfo);
strftime(DATE, MAX_NAME_LENGTH, "%d %b %Y, %H:%M%p", timeinfo);
return DATE;
}