diff options
author | Simon Howard | 2012-12-24 18:33:24 +0000 |
---|---|---|
committer | Simon Howard | 2012-12-24 18:33:24 +0000 |
commit | 9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99 (patch) | |
tree | 3910167086dad2dd1e21b0ba87f0ed6dda5bc2eb /src/heretic/mn_menu.c | |
parent | 73fd9adc1e23f711d249d4adc2389711304bd027 (diff) | |
download | chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.tar.gz chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.tar.bz2 chocolate-doom-9b6485b5cc5f005a547e8dd3e3d5a8b90838ed99.zip |
Fix compiler warnings by removing variables that are set but not used.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2555
Diffstat (limited to 'src/heretic/mn_menu.c')
-rw-r--r-- | src/heretic/mn_menu.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/heretic/mn_menu.c b/src/heretic/mn_menu.c index 94713080..4958d9be 100644 --- a/src/heretic/mn_menu.c +++ b/src/heretic/mn_menu.c @@ -642,7 +642,6 @@ static void DrawSaveMenu(void) void MN_LoadSlotText(void) { FILE *fp; - int count; int i; char *filename; @@ -658,7 +657,7 @@ void MN_LoadSlotText(void) SlotStatus[i] = 0; continue; } - count = fread(&SlotText[i], SLOTTEXTLEN, 1, fp); + fread(&SlotText[i], SLOTTEXTLEN, 1, fp); fclose(fp); SlotStatus[i] = 1; } @@ -1040,7 +1039,6 @@ boolean MN_Responder(event_t * event) int i; MenuItem_t *item; extern boolean automapactive; - static boolean shiftdown; extern void D_StartTitle(void); extern void G_CheckDemoStatus(void); char *textBuffer; @@ -1081,11 +1079,7 @@ boolean MN_Responder(event_t * event) return true; } - if (event->data1 == KEY_RSHIFT) - { - shiftdown = (event->type == ev_keydown); - } - if (event->type != ev_keydown) + if (event->data1 != KEY_RSHIFT && event->type != ev_keydown) { return (false); } |