1
0
Fork 0
forked from len0rd/rockbox

doom: fix types mismatch spotted by gcc 4.5.1

- some variables were defined as const but declared without const
- remove double declaration of mapnames* (already in .h)
- forceOldBsp is boolean, not int

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27660 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-08-01 16:39:03 +00:00
parent 5574af8334
commit c9d4b7977a
4 changed files with 7 additions and 19 deletions

View file

@ -844,7 +844,7 @@ void G_Ticker (void)
if ((netgame || demoplayback) && cmd->forwardmove > TURBOTHRESHOLD &&
!(gametic&31) && ((gametic>>5)&3) == i )
{
extern char *player_names[];
extern const char *player_names[];
/* cph - don't use sprintf, use doom_printf */
doom_printf ("%s is turbo!", player_names[i]);
}
@ -2241,7 +2241,7 @@ void G_RecordDemo (const char* name)
// byte(s) should still be skipped over or padded with 0's.
// Lee Killough 3/1/98
extern int forceOldBsp;
extern boolean forceOldBsp;
byte *G_WriteOptions(byte *demo_p)
{