summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-17 23:34:24 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-17 23:34:24 +0200
commit5ab2c85e977ffa98a204fb64070ab8acbba214af (patch)
tree1987c7dba46cc3b5aebfbdef31a5faa8befbac74
parenta few more stubs (diff)
downloadre3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar.gz
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar.bz2
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar.lz
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar.xz
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.tar.zst
re3-5ab2c85e977ffa98a204fb64070ab8acbba214af.zip
-rw-r--r--src/animation/AnimBlendAssocGroup.cpp2
-rw-r--r--src/control/Script.cpp53
-rw-r--r--src/vehicles/Automobile.cpp2
3 files changed, 46 insertions, 11 deletions
diff --git a/src/animation/AnimBlendAssocGroup.cpp b/src/animation/AnimBlendAssocGroup.cpp
index ef0161db..83c1742a 100644
--- a/src/animation/AnimBlendAssocGroup.cpp
+++ b/src/animation/AnimBlendAssocGroup.cpp
@@ -126,8 +126,6 @@ GetModelFromName(const char *name)
for(i = 0; i < MODELINFOSIZE; i++){
mi = CModelInfo::GetModelInfo(i);
- if (mi && strcmp("drink", mi->GetName()) == 0 && strcmp(name, "drink01") == 0)
- debug("TEST");
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
strcmpIgnoringDigits(mi->GetName(), name))
return mi;
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 42468f48..a1287d09 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -8327,22 +8327,34 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
DMAudio.PreloadMissionAudio(str);
return 0;
case COMMAND_HAS_MISSION_AUDIO_LOADED:
+ {
CollectParameters(&m_nIp, 1);
- debug("HAS_MISSION_AUDIO_LOADED doesn't support parameter yet, default to TRUE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("HAS_MISSION_AUDIO_LOADED not implemented, default to TRUE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(true);
//UpdateCompareFlag(DMAudio.GetMissionAudioLoadingStatus() == 1);
return 0;
+ }
case COMMAND_PLAY_MISSION_AUDIO:
CollectParameters(&m_nIp, 1);
debug("PLAY_MISSION_AUDIO doesn't support parameter yet, skipping\n");
//DMAudio.PlayLoadedMissionAudio();
return 0;
case COMMAND_HAS_MISSION_AUDIO_FINISHED:
+ {
CollectParameters(&m_nIp, 1);
- debug("HAS_MISSION_AUDIO_FINISHED doesn't support parameter yet, default to TRUE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("HAS_MISSION_AUDIO_FINISHED not implemented, default to TRUE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(true);
//UpdateCompareFlag(DMAudio.IsMissionAudioSampleFinished());
return 0;
+ }
case COMMAND_GET_CLOSEST_CAR_NODE_WITH_HEADING:
{
CollectParameters(&m_nIp, 3);
@@ -10296,7 +10308,11 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
case COMMAND_GET_WHEELIE_STATS:
{
CollectParameters(&m_nIp, 1);
- debug("GET_WHEELIE_STATS not implemented, skipping\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("GET_WHEELIE_STATS not implemented\n");
+ bShowed = true;
+ }
for (int i = 0; i < 6; i++)
ScriptParams[i] = 0;
StoreParameters(&m_nIp, 6);
@@ -10567,7 +10583,11 @@ int8 CRunningScript::ProcessCommands1300To1399(int32 command)
assert(0);
case COMMAND_WAS_CUTSCENE_SKIPPED:
{
- debug("WAS_CUTSCENE_SKIPPED is not implemented, defaulted to TRUE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("COMMAND_WAS_CUTSCENE_SKIPPED not implemented, default to TRUE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(true);
return 0;
}
@@ -10581,7 +10601,11 @@ int8 CRunningScript::ProcessCommands1300To1399(int32 command)
case COMMAND_IS_CHAR_IN_ANY_POLICE_VEHICLE:
{
CollectParameters(&m_nIp, 1);
- debug("IS_CHAR_IN_ANY_POLICE_VEHICLE is not implemented, defaulted to FALSE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("IS_CHAR_IN_ANY_POLICE_VEHICLE not implemented, default to FALSE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(false);
return 0;
}
@@ -10627,7 +10651,11 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
break;
case COMMAND_WANTED_STARS_ARE_FLASHING:
{
- debug("WANTED_STARS_ARE_FLASHING not implemented, default to FALSE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("WANTED_STARS_ARE_FLASHING not implemented, default to FALSE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(false);
return 0;
}
@@ -10653,7 +10681,11 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
char key[KEY_LENGTH_IN_SCRIPT];
CTheScripts::ReadTextLabelFromScript(&m_nIp, key);
m_nIp += KEY_LENGTH_IN_SCRIPT;
- debug("IS_PLAYER_IN_INFO_ZONE not implemented, default to FALSE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("IS_PLAYER_IN_INFO_ZONE not implemented, default to FALSE\n");
+ bShowed = true;
+ }
UpdateCompareFlag(false);
return 0;
}
@@ -10705,7 +10737,12 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
case COMMAND_IS_PLAYER_IN_SHORTCUT_TAXI:
{
CollectParameters(&m_nIp, 1);
- debug("IS_PLAYER_IN_SHORTCUT_TAXI not implemented, default to FALSE\n");
+ static bool bShowed = false;
+ if (!bShowed) {
+ debug("IS_PLAYER_IN_SHORTCUT_TAXI not implemented, default to FALSE\n");
+ bShowed = true;
+ }
+ UpdateCompareFlag(false);
return 0;
}
case COMMAND_IS_CHAR_DUCKING:
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index aff09b8c..aad31bbf 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -4620,7 +4620,7 @@ CAutomobile::TellHeliToGoToCoors(float x, float y, float z, uint8 speed)
AutoPilot.m_vecDestinationCoors.z = z;
AutoPilot.m_nCruiseSpeed = speed;
SetStatus(STATUS_PHYSICS);
- assert(0); // TODO(MIAMI)
+ //TODO(MIAMI)
}
#ifdef COMPATIBLE_SAVES