From 7bd1eda5504a97c38630bbfaeb10a25e1e0f2c3d Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sun, 6 Jul 2003 00:13:41 +0000 Subject: [PATCH] Fixed some sporadic menu corruption if you deleted empty slots git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1026 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/melee.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sc2/src/sc2code/melee.c b/sc2/src/sc2code/melee.c index c72559f85..495c1e471 100644 --- a/sc2/src/sc2code/melee.c +++ b/sc2/src/sc2code/melee.c @@ -1149,14 +1149,14 @@ DeleteCurrentShip (PMELEE_STATE pMS) UnlockStarShip (&master_q, hStarShip); pMS->TeamImage[pMS->side].ShipList[pMS->row][pMS->col] = (BYTE)~0; - - SetSemaphore (GraphicsSem); - GetShipBox (&r, pMS->side, pMS->row, pMS->col); - RepairMeleeFrame (&r); + } + SetSemaphore (GraphicsSem); + GetShipBox (&r, pMS->side, pMS->row, pMS->col); + RepairMeleeFrame (&r); + + DrawTeamString (pMS, 4); + ClearSemaphore (GraphicsSem); - DrawTeamString (pMS, 4); - ClearSemaphore (GraphicsSem); - } } static void