From 85c0c028c96bbc6075e957a95f85ab4365365644 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Fri, 20 Dec 2002 17:02:05 +0000 Subject: [PATCH] Captain portraits in melee are now updated properly after battle and bottom portrait always stays in correct place, from fOSSiL git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@448 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/ship.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc2/src/sc2code/ship.c b/sc2/src/sc2code/ship.c index 4842753ee..1b8f09c88 100644 --- a/sc2/src/sc2code/ship.c +++ b/sc2/src/sc2code/ship.c @@ -166,8 +166,12 @@ ship_preprocess (register PELEMENT ElementPtr) } else if (LOBYTE (GLOBAL (CurrentActivity)) <= IN_ENCOUNTER) { + CONTEXT OldContext; + InitShipStatus (StarShipPtr, NULL_PTR); + OldContext = SetContext (StatusContext); DrawCaptainsWindow (StarShipPtr); + SetContext (OldContext); if (RDPtr->preprocess_func) (*RDPtr->preprocess_func) (ElementPtr);