Do not reset Syreen HELLO stack when discovering the vault; fixes bug #891

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3600 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2011-05-08 00:49:48 +00:00
parent d9d6da8d18
commit 227ab8ec10
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -1,4 +1,6 @@
Changes towards version 0.7:
- Syreen dialog tree no longer resets after visiting the Syreen Vault
for the very first time (bug #891) - Alex
- Fixed lander report at the Syreen Vault inconsistency (bug #1121) - Alex
- Added lander reports for Supox ruins and Ultron. The reports text
is new content from TFB. (bug #1120) - Alex
+7
View File
@@ -694,6 +694,7 @@ PlanAmbush (RESPONSE_REF R)
NPCPhrase (OK_FOUND_VAULT);
SET_GAME_STATE (MYCON_AMBUSH, 1);
// This is redundant but left here for clarity
SET_GAME_STATE (SYREEN_HOME_VISITS, 0);
Response (whats_my_reward, Foreplay);
@@ -818,6 +819,12 @@ Intro (void)
else if (GET_GAME_STATE (SHIP_VAULT_UNLOCKED))
{
PlanAmbush ((RESPONSE_REF)0);
// XXX: PlanAmbush() sets SYREEN_HOME_VISITS=0, but then this value
// is immediately reset to NumVisits just below. The intent was to
// reset the HELLO stack so that is what we will do here as well.
// Note that it is completely redundant because genvault.c resets
// SYREEN_HOME_VISITS when it sets SHIP_VAULT_UNLOCKED=1.
NumVisits = 0;
}
else
{
-1
View File
@@ -118,7 +118,6 @@ GenerateVault_pickupEnergy (SOLARSYS_STATE *solarSys, PLANET_DESC *world,
if (!GET_GAME_STATE (KNOW_SYREEN_VAULT))
{
SET_GAME_STATE (KNOW_SYREEN_VAULT, 1);
SET_GAME_STATE (SYREEN_HOME_VISITS, 0);
}
}