From acbfe6b08f29604d6a2f8858310d0f18c8d73c76 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 30 Dec 2002 23:17:46 +0000 Subject: [PATCH] Get rid of some compilation warnings, from steve@blckknght.org. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@508 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/input/sdl/input.c | 1 - sc2/src/sc2code/outfit.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sc2/src/sc2code/libs/input/sdl/input.c b/sc2/src/sc2code/libs/input/sdl/input.c index 08776e008..9e691e353 100644 --- a/sc2/src/sc2code/libs/input/sdl/input.c +++ b/sc2/src/sc2code/libs/input/sdl/input.c @@ -594,7 +594,6 @@ _get_serial_keyboard_state (INPUT_REF ref, INPUT_STATE InputState) // I hope these are defined somewhere... { Uint16 key; - extern Uint16 GetUNICODEKey (void); if ((key = GetUNICODEKey ()) == '\r') key = '\n'; diff --git a/sc2/src/sc2code/outfit.c b/sc2/src/sc2code/outfit.c index 87521a9f4..02526bf56 100644 --- a/sc2/src/sc2code/outfit.c +++ b/sc2/src/sc2code/outfit.c @@ -314,7 +314,7 @@ DoInstallModule (INPUT_STATE InputState, PMENU_STATE pMS) GLOBAL (ModuleCost[old_slot_piece]) * MODULE_COST_SCALE); - if (WRAP_VAL (pMS->CurState, EMPTY_SLOT + 3) == PLANET_LANDER) + if (pMS->CurState == PLANET_LANDER || pMS->CurState == EMPTY_SLOT + 3) DisplayLanders (pMS); else {