diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 4fa7d71b..6b52ed82 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -1642,7 +1642,7 @@ const tScriptCommandData commands[] = { REGISTER_COMMAND(COMMAND_1489, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_1490, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_1491, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), - REGISTER_COMMAND(COMMAND_SET_DEBUG_MENU_ACTUVE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), + REGISTER_COMMAND(COMMAND_SET_DEBUG_MENU_ACTIVE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_SET_DRAW_HUD, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_GET_RANDOM_CHAR_IN_AREA_NO_CHECKS, INPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_GET_RANDOM_CAR_IN_AREA_NO_CHECKS_NO_SAVE, INPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), false, -1, ""), @@ -1750,7 +1750,7 @@ const tScriptCommandData commands[] = { REGISTER_COMMAND(COMMAND_REGISTER_HIGHEST_LEVEL_SLASH_TV, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_ADD_MONEY_MADE_WITH_SLASH_TV, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_ADD_TOTAL_KILLS_ON_SLASH_TV, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), - REGISTER_COMMAND(COMMAND_ADD_NOODLES_DELIEVERED, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), + REGISTER_COMMAND(COMMAND_ADD_NOODLES_DELIVERED, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_REGISTER_SCRAPYARD_CHALLENGE_SCORE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_REGISTER_9MM_MAYHEM_SCORE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), REGISTER_COMMAND(COMMAND_REGISTER_SCOOTER_SHOOTER_SCORE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""), diff --git a/src/control/Script.h b/src/control/Script.h index f2b5dda9..780440dd 100644 --- a/src/control/Script.h +++ b/src/control/Script.h @@ -568,16 +568,13 @@ public: return; } } - else if (m_nAndOrState >= ORS_1 && m_nAndOrState <= ORS_8) { + else { m_bCondResult |= flag; - if (m_nAndOrState == ORS_1) { + if (m_nAndOrState <= ORS_1) { m_nAndOrState = ANDOR_NONE; return; } } - else { - return; - } m_nAndOrState--; } int16 GetPadState(uint16, uint16); diff --git a/src/control/Script10.cpp b/src/control/Script10.cpp index 388bfe8e..1a355228 100644 --- a/src/control/Script10.cpp +++ b/src/control/Script10.cpp @@ -27,7 +27,7 @@ bool gDeveloperFlag; int8 CRunningScript::ProcessCommands1600To1699(int32 command) { switch (command) { - case COMMAND_ADD_NOODLES_DELIEVERED: + case COMMAND_ADD_NOODLES_DELIVERED: CollectParameters(&m_nIp, 1); // CStats::NoodlesDelievered += GET_INTEGER_PARAM(0); return 0; diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index 9fca2cc0..74d187ca 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -2286,7 +2286,8 @@ INITSAVEBUF script_assert(ReadSaveBuf(buf) == NumberOfExclusiveMissionScripts); uint32 runningScripts = ReadSaveBuf(buf); for (uint32 i = 0; i < runningScripts; i++) - StartNewScript(0)->Load(buf); + CRunningScript().Load(buf); + StartTestScript(); // <- tmp hack return true; VALIDATESAVEBUF(size) } diff --git a/src/control/Script8.cpp b/src/control/Script8.cpp index c6e11127..e58bf3ea 100644 --- a/src/control/Script8.cpp +++ b/src/control/Script8.cpp @@ -681,7 +681,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command) //case COMMAND_1489: //case COMMAND_1490: //case COMMAND_1491: - case COMMAND_SET_DEBUG_MENU_ACTUVE: + case COMMAND_SET_DEBUG_MENU_ACTIVE: CollectParameters(&m_nIp, 1); // this sets two values on PS2, but not on mobile - TODO? return 0; diff --git a/src/control/ScriptCommands.h b/src/control/ScriptCommands.h index ce8327ec..76bc4aa3 100644 --- a/src/control/ScriptCommands.h +++ b/src/control/ScriptCommands.h @@ -1493,7 +1493,7 @@ enum { COMMAND_1489, COMMAND_1490, COMMAND_1491, - COMMAND_SET_DEBUG_MENU_ACTUVE, + COMMAND_SET_DEBUG_MENU_ACTIVE, COMMAND_SET_DRAW_HUD, COMMAND_GET_RANDOM_CHAR_IN_AREA_NO_CHECKS, COMMAND_GET_RANDOM_CAR_IN_AREA_NO_CHECKS_NO_SAVE, @@ -1601,7 +1601,7 @@ enum { COMMAND_REGISTER_HIGHEST_LEVEL_SLASH_TV, COMMAND_ADD_MONEY_MADE_WITH_SLASH_TV, COMMAND_ADD_TOTAL_KILLS_ON_SLASH_TV, - COMMAND_ADD_NOODLES_DELIEVERED, + COMMAND_ADD_NOODLES_DELIVERED, COMMAND_REGISTER_SCRAPYARD_CHALLENGE_SCORE, COMMAND_REGISTER_9MM_MAYHEM_SCORE, COMMAND_REGISTER_SCOOTER_SHOOTER_SCORE, diff --git a/src/core/config.h b/src/core/config.h index 3e5b1cfe..b00788ac 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -212,7 +212,7 @@ enum Config { # define PS2_MATFX # endif # define PC_PLAYER_CONTROLS // mouse player/cam mode -# //define GTA_REPLAY +//# define GTA_REPLAY # define GTA_SCENE_EDIT #elif defined GTA_XBOX #endif diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp index 82f66308..13f15b8a 100644 --- a/src/save/GenericGameStorage.cpp +++ b/src/save/GenericGameStorage.cpp @@ -44,7 +44,7 @@ // --MIAMI: file done #define BLOCK_COUNT 22 -#define SIZE_OF_SIMPLEVARS 0xE4 +#define SIZE_OF_SIMPLEVARS 0xE8 const uint32 SIZE_OF_ONE_GAME_IN_BYTES = 201729;