Short enum fixes for doom plugin.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23671 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andrew Mahone 2009-11-20 02:51:17 +00:00
parent 36deb0a315
commit d523d19b28
3 changed files with 3 additions and 3 deletions

View file

@ -194,7 +194,7 @@ void D_Display (void)
if (gamestate != GS_LEVEL) { // Not a level
switch (oldgamestate) {
case -1:
case (gamestate_t)-1:
case GS_LEVEL:
V_SetPalette(0); // cph - use default (basic) palette
default:

View file

@ -2012,7 +2012,7 @@ void G_ReloadDefaults(void)
int i = M_CheckParm("-complevel");
if (i && (1+i) < myargc) compatibility_level = atoi(myargv[i+1]);
}
if ((signed)compatibility_level == -1)
if (compatibility_level == (complevel_t)-1)
compatibility_level = MAX_COMPATIBILITY_LEVEL-1;
if (mbf_features)

View file

@ -547,7 +547,7 @@ static void P_DoNewChaseDir(mobj_t *actor, fixed_t deltax, fixed_t deltay)
return;
}
else
for (tdir = DI_SOUTHEAST; tdir != (unsigned)(DI_EAST-1); tdir--)
for (tdir = DI_SOUTHEAST; tdir != (dirtype_t)(DI_EAST-1); tdir--)
if (tdir != turnaround && (actor->movedir = tdir, P_TryWalk(actor)))
return;