mirror of
https://github.com/halpz/re3.git
synced 2025-07-21 23:29:44 +00:00
Revert "First batch of fixes (CallAndMessage)"
This reverts commit 7a3b80a9b7
.
This commit is contained in:
@ -814,9 +814,6 @@ void
|
||||
CPickups::RenderPickUpText()
|
||||
{
|
||||
wchar *strToPrint;
|
||||
#ifdef FIX_BUGS
|
||||
strToPrint = nil;
|
||||
#endif
|
||||
for (int32 i = 0; i < NumMessages; i++) {
|
||||
if (aMessages[i].m_quantity <= 39) {
|
||||
switch (aMessages[i].m_quantity) // could use some enum maybe
|
||||
@ -1288,11 +1285,7 @@ CPacManPickups::GeneratePMPickUpsForRace(int32 race)
|
||||
int i = 0;
|
||||
|
||||
if (race == 0) pPos = aRacePoints1; // there's only one available
|
||||
|
||||
if(!pPos) {
|
||||
debug("This shouldn't happen");
|
||||
return;
|
||||
}
|
||||
assert(pPos != nil);
|
||||
|
||||
while (!pPos->IsZero()) {
|
||||
while (aPMPickUps[i].m_eType != PACMAN_NONE)
|
||||
|
@ -3439,13 +3439,8 @@ int8 CRunningScript::ProcessCommands100To199(int32 command)
|
||||
}
|
||||
else {
|
||||
CVehicle* car;
|
||||
if(!CModelInfo::IsBikeModel(ScriptParams[0])) car = new CAutomobile(ScriptParams[0], MISSION_VEHICLE);
|
||||
#ifdef FIX_BUGS
|
||||
else {
|
||||
debug("This shouldn't happen");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
if (!CModelInfo::IsBikeModel(ScriptParams[0]))
|
||||
car = new CAutomobile(ScriptParams[0], MISSION_VEHICLE);
|
||||
CVector pos = *(CVector*)&ScriptParams[1];
|
||||
if (pos.z <= MAP_Z_LOW_LIMIT)
|
||||
pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y);
|
||||
|
@ -1817,13 +1817,8 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
|
||||
if (model == -1)
|
||||
return 0;
|
||||
CVehicle* car;
|
||||
if(!CModelInfo::IsBikeModel(model)) car = new CAutomobile(model, RANDOM_VEHICLE);
|
||||
#ifdef FIX_BUGS
|
||||
else {
|
||||
debug("This shouldn't happen");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
if (!CModelInfo::IsBikeModel(model))
|
||||
car = new CAutomobile(model, RANDOM_VEHICLE);
|
||||
CVector pos = *(CVector*)&ScriptParams[0];
|
||||
pos.z += car->GetDistanceFromCentreOfMassToBaseOfModel();
|
||||
car->SetPosition(pos);
|
||||
|
@ -971,10 +971,8 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
|
||||
pClosestEntity = apEntities[i];
|
||||
}
|
||||
}
|
||||
#ifdef FIX_BUGS
|
||||
if(pClosestEntity)
|
||||
#endif
|
||||
if(pClosestEntity->IsDummy()) pClosestEntity = nil;
|
||||
if (pClosestEntity->IsDummy())
|
||||
pClosestEntity = nil;
|
||||
}
|
||||
if (pClosestEntity) {
|
||||
script_assert(pClosestEntity->IsObject());
|
||||
|
Reference in New Issue
Block a user