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:
Meep-Eep
2012-01-01 16:47:49 +00:00
parent 010f3507d0
commit c65fc65f2b
+5 -2
View File
@@ -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