From 898141daa7950f365036f6becca223cbb88b084d Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Thu, 2 Aug 2007 22:38:24 +0000 Subject: [PATCH] A few small cleanups. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2829 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/battle.c | 1 - sc2/src/sc2code/libs/graphics/drawable.c | 6 ++++-- sc2/src/sc2code/tactrans.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sc2/src/sc2code/battle.c b/sc2/src/sc2code/battle.c index d8cc1ac2e..8f0ca71c6 100644 --- a/sc2/src/sc2code/battle.c +++ b/sc2/src/sc2code/battle.c @@ -185,7 +185,6 @@ ProcessInput (void) CyborgDescPtr->ship_input_state = 0; if (CyborgDescPtr->RaceDescPtr->ship_info.crew_level) { - if (InputState & BATTLE_LEFT) CyborgDescPtr->ship_input_state |= LEFT; else if (InputState & BATTLE_RIGHT) diff --git a/sc2/src/sc2code/libs/graphics/drawable.c b/sc2/src/sc2code/libs/graphics/drawable.c index e275e5cd9..ffde12493 100644 --- a/sc2/src/sc2code/libs/graphics/drawable.c +++ b/sc2/src/sc2code/libs/graphics/drawable.c @@ -101,8 +101,10 @@ AllocDrawable (COUNT n) F->Type = 0; F->Index = 0; F->image = 0; - F->Bounds.width = F->Bounds.height = 0; - F->HotSpot.x = F->HotSpot.y = 0; + F->Bounds.width = 0; + F->Bounds.height = 0; + F->HotSpot.x = 0; + F->HotSpot.y = 0; } UnlockDrawable (Drawable); diff --git a/sc2/src/sc2code/tactrans.c b/sc2/src/sc2code/tactrans.c index 70b19c416..2a0159893 100644 --- a/sc2/src/sc2code/tactrans.c +++ b/sc2/src/sc2code/tactrans.c @@ -298,7 +298,7 @@ new_ship (ELEMENT *DeadShipPtr) if (StarShipPtr && (StarShipPtr->cur_status_flags & PLAY_VICTORY_DITTY)) { - // StarShipPtr points to the surviving ship. + // StarShipPtr points to the remaining ship. MusicStarted = TRUE; PlayMusic ((MUSIC_REF)StarShipPtr->RaceDescPtr-> ship_data.victory_ditty, FALSE, 3);