static void SpinStarShip (MENU_STATE *pMS, HFLEETINFO hStarShip) { int Index; FLEET_INFO *FleetPtr; FleetPtr = LockFleetInfo (&GLOBAL (avail_race_q), hStarShip); Index = FindMasterShipIndex (FleetPtr->SpeciesID); UnlockFleetInfo (&GLOBAL (avail_race_q), hStarShip); if (Index >= 0 && Index < NUM_MELEE_SHIPS) { DoShipSpin (Index, pMS->hMusic); } }
static void SpinStarShip (HFLEETINFO hStarShip) { int Index; FLEET_INFO *FleetPtr; FleetPtr = LockFleetInfo (&GLOBAL (avail_race_q), hStarShip); Index = FindMasterShipIndex (FleetPtr->SpeciesID); UnlockFleetInfo (&GLOBAL (avail_race_q), hStarShip); if (Index >= 0 && Index < NUM_MELEE_SHIPS) { UnlockMutex (GraphicsLock); DoShipSpin (Index, pMenuState->hMusic); LockMutex (GraphicsLock); } }