A few small cleanups.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2829 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -185,7 +185,6 @@ ProcessInput (void)
|
|||||||
CyborgDescPtr->ship_input_state = 0;
|
CyborgDescPtr->ship_input_state = 0;
|
||||||
if (CyborgDescPtr->RaceDescPtr->ship_info.crew_level)
|
if (CyborgDescPtr->RaceDescPtr->ship_info.crew_level)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (InputState & BATTLE_LEFT)
|
if (InputState & BATTLE_LEFT)
|
||||||
CyborgDescPtr->ship_input_state |= LEFT;
|
CyborgDescPtr->ship_input_state |= LEFT;
|
||||||
else if (InputState & BATTLE_RIGHT)
|
else if (InputState & BATTLE_RIGHT)
|
||||||
|
|||||||
@@ -101,8 +101,10 @@ AllocDrawable (COUNT n)
|
|||||||
F->Type = 0;
|
F->Type = 0;
|
||||||
F->Index = 0;
|
F->Index = 0;
|
||||||
F->image = 0;
|
F->image = 0;
|
||||||
F->Bounds.width = F->Bounds.height = 0;
|
F->Bounds.width = 0;
|
||||||
F->HotSpot.x = F->HotSpot.y = 0;
|
F->Bounds.height = 0;
|
||||||
|
F->HotSpot.x = 0;
|
||||||
|
F->HotSpot.y = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
UnlockDrawable (Drawable);
|
UnlockDrawable (Drawable);
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ new_ship (ELEMENT *DeadShipPtr)
|
|||||||
if (StarShipPtr
|
if (StarShipPtr
|
||||||
&& (StarShipPtr->cur_status_flags & PLAY_VICTORY_DITTY))
|
&& (StarShipPtr->cur_status_flags & PLAY_VICTORY_DITTY))
|
||||||
{
|
{
|
||||||
// StarShipPtr points to the surviving ship.
|
// StarShipPtr points to the remaining ship.
|
||||||
MusicStarted = TRUE;
|
MusicStarted = TRUE;
|
||||||
PlayMusic ((MUSIC_REF)StarShipPtr->RaceDescPtr->
|
PlayMusic ((MUSIC_REF)StarShipPtr->RaceDescPtr->
|
||||||
ship_data.victory_ditty, FALSE, 3);
|
ship_data.victory_ditty, FALSE, 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user