summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-11-20 02:51:17 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-11-20 02:51:17 +0000
commitd523d19b281076e82fa8b070848e21148fe19c17 (patch)
treec2d1fadbc176ae24ad19f0601ce3f178a19c623e /apps/plugins/doom
parent36deb0a315c10bc3930e7a9b7518da9e7fe620eb (diff)
Short enum fixes for doom plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23671 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom')
-rw-r--r--apps/plugins/doom/d_main.c2
-rw-r--r--apps/plugins/doom/g_game.c2
-rw-r--r--apps/plugins/doom/p_enemy.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/doom/d_main.c b/apps/plugins/doom/d_main.c
index 32e3809dee..f58d1aae4a 100644
--- a/apps/plugins/doom/d_main.c
+++ b/apps/plugins/doom/d_main.c
@@ -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:
diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c
index e8c55eb77e..d4445254f0 100644
--- a/apps/plugins/doom/g_game.c
+++ b/apps/plugins/doom/g_game.c
@@ -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)
diff --git a/apps/plugins/doom/p_enemy.c b/apps/plugins/doom/p_enemy.c
index b1f40bc5b8..5b3f958146 100644
--- a/apps/plugins/doom/p_enemy.c
+++ b/apps/plugins/doom/p_enemy.c
@@ -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;