AVALANCHE: refactor initVariables by reusing resetVariables(). That also should fix CID 1109674

This commit is contained in:
Strangerke 2014-01-03 08:18:08 +01:00
parent 9ed37e68d2
commit 8e31d44646

View File

@ -144,30 +144,7 @@ void AvalancheEngine::initVariables() {
_currentMouse = 177;
_holdLeftMouse = false;
_jumpStatus = 0;
_mushroomGrowing = false;
_crapulusWillTell = false;
_enterCatacombsFromLustiesRoom = false;
_teetotal = false;
_malagauche = 0;
_drinking = '\0';
_enteredLustiesRoomAsMonk = false;
_catacombX = 0;
_catacombY = 0;
_avvysInTheCupboard = false;
_geidaFollows = false;
_givenPotionToGeida = false;
_lustieIsAsleep = false;
_beenTiedUp = false;
_sittingInPub = false;
_spurgeTalkCount = 0;
_metAvaroid = false;
_takenMushroom = false;
_givenPenToAyles = false;
_askedDogfoodAboutNim = false;
_spludwickAtHome = false;
_passedCwytalotInHerts = false;
_lastRoom = _lastRoomNotMap = kRoomDummy;
resetVariables();
}
Common::ErrorCode AvalancheEngine::initialize() {