From 694c5a7bd70ab08891557f0e6bb4e820c4ea0a31 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 23 Jul 2003 22:58:00 +0000 Subject: [PATCH] Crew death on planet is now counted properly in all cases (bug #70) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1084 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 1 + sc2/src/sc2code/planets/lander.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index a0a69eed1..95145188a 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ Changes towards version 0.3: +- Crew death on planet is now counted properly in all cases (bug #70) -Mika - Fixed lockup in 'save failed' alert box (bug #397), from ghakko - Fixed glitch in Pkunk animation (bug #354), from Paxtez - Fixed Kohr-Ah final defeat message repeating (bug #426) -Mika diff --git a/sc2/src/sc2code/planets/lander.c b/sc2/src/sc2code/planets/lander.c index 189732989..cbc01df04 100644 --- a/sc2/src/sc2code/planets/lander.c +++ b/sc2/src/sc2code/planets/lander.c @@ -421,6 +421,8 @@ DeltaLanderCrew (SIZE crew_delta, COUNT which_disaster) ShieldFlags = GET_GAME_STATE (LANDER_SHIELDS); ShieldFlags &= 1 << which_disaster; crew_delta = HIBYTE (pMenuState->delta_item); + if (crew_delta < 1) + return; if (ShieldFlags && (BYTE)TFB_Random () < 256 * 95 / 100) pMenuState->delta_item = SHIELD_BIT; else