Fix for my earlier cleanup...
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3731 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1040,8 +1040,11 @@ DoModifyShips (MENU_STATE *pMS)
|
|||||||
{
|
{
|
||||||
// Moving horizontally through the escort ship slots,
|
// Moving horizontally through the escort ship slots,
|
||||||
// wrapping around if necessary.
|
// wrapping around if necessary.
|
||||||
NewState = (pMS->CurState + HANGAR_SHIPS_ROW + dx) %
|
BYTE row = pMS->CurState / HANGAR_SHIPS_ROW;
|
||||||
HANGAR_SHIPS_ROW;
|
BYTE col = pMS->CurState % HANGAR_SHIPS_ROW;
|
||||||
|
|
||||||
|
col = (col + HANGAR_SHIPS_ROW + dx) % HANGAR_SHIPS_ROW;
|
||||||
|
NewState = row * HANGAR_SHIPS_ROW + col;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (select || cancel
|
if (select || cancel
|
||||||
|
|||||||
Reference in New Issue
Block a user