diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-11-20 02:51:17 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-11-20 02:51:17 +0000 |
commit | d523d19b281076e82fa8b070848e21148fe19c17 (patch) | |
tree | c2d1fadbc176ae24ad19f0601ce3f178a19c623e /apps/plugins | |
parent | 36deb0a315c10bc3930e7a9b7518da9e7fe620eb (diff) | |
download | rockbox-d523d19b281076e82fa8b070848e21148fe19c17.tar.gz rockbox-d523d19b281076e82fa8b070848e21148fe19c17.zip |
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')
-rw-r--r-- | apps/plugins/doom/d_main.c | 2 | ||||
-rw-r--r-- | apps/plugins/doom/g_game.c | 2 | ||||
-rw-r--r-- | apps/plugins/doom/p_enemy.c | 2 |
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) | |||
194 | 194 | ||
195 | if (gamestate != GS_LEVEL) { // Not a level | 195 | if (gamestate != GS_LEVEL) { // Not a level |
196 | switch (oldgamestate) { | 196 | switch (oldgamestate) { |
197 | case -1: | 197 | case (gamestate_t)-1: |
198 | case GS_LEVEL: | 198 | case GS_LEVEL: |
199 | V_SetPalette(0); // cph - use default (basic) palette | 199 | V_SetPalette(0); // cph - use default (basic) palette |
200 | default: | 200 | 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) | |||
2012 | int i = M_CheckParm("-complevel"); | 2012 | int i = M_CheckParm("-complevel"); |
2013 | if (i && (1+i) < myargc) compatibility_level = atoi(myargv[i+1]); | 2013 | if (i && (1+i) < myargc) compatibility_level = atoi(myargv[i+1]); |
2014 | } | 2014 | } |
2015 | if ((signed)compatibility_level == -1) | 2015 | if (compatibility_level == (complevel_t)-1) |
2016 | compatibility_level = MAX_COMPATIBILITY_LEVEL-1; | 2016 | compatibility_level = MAX_COMPATIBILITY_LEVEL-1; |
2017 | 2017 | ||
2018 | if (mbf_features) | 2018 | 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) | |||
547 | return; | 547 | return; |
548 | } | 548 | } |
549 | else | 549 | else |
550 | for (tdir = DI_SOUTHEAST; tdir != (unsigned)(DI_EAST-1); tdir--) | 550 | for (tdir = DI_SOUTHEAST; tdir != (dirtype_t)(DI_EAST-1); tdir--) |
551 | if (tdir != turnaround && (actor->movedir = tdir, P_TryWalk(actor))) | 551 | if (tdir != turnaround && (actor->movedir = tdir, P_TryWalk(actor))) |
552 | return; | 552 | return; |
553 | 553 | ||