mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 20:30:02 +00:00
Merge branch 'lcs' into lcs-dev
This commit is contained in:
commit
2bf88fcef5
|
@ -117,8 +117,8 @@ GetModelFromName(const char *name)
|
||||||
char playername[32];
|
char playername[32];
|
||||||
|
|
||||||
if(strncasecmp(name, "CSplay", 6) == 0 &&
|
if(strncasecmp(name, "CSplay", 6) == 0 &&
|
||||||
strncasecmp(CModelInfo::GetModelInfo(MI_PLAYER)->GetName(), "ig", 2) == 0){
|
strncasecmp(CModelInfo::GetModelInfo(MI_PLAYER)->GetModelName(), "ig", 2) == 0){
|
||||||
strcpy(playername, CModelInfo::GetModelInfo(MI_PLAYER)->GetName());
|
strcpy(playername, CModelInfo::GetModelInfo(MI_PLAYER)->GetModelName());
|
||||||
playername[0] = 'C';
|
playername[0] = 'C';
|
||||||
playername[1] = 'S';
|
playername[1] = 'S';
|
||||||
name = playername;
|
name = playername;
|
||||||
|
@ -127,7 +127,7 @@ GetModelFromName(const char *name)
|
||||||
for(i = 0; i < MODELINFOSIZE; i++){
|
for(i = 0; i < MODELINFOSIZE; i++){
|
||||||
mi = CModelInfo::GetModelInfo(i);
|
mi = CModelInfo::GetModelInfo(i);
|
||||||
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
|
if(mi && mi->GetRwObject() && RwObjectGetType(mi->GetRwObject()) == rpCLUMP &&
|
||||||
strcmpIgnoringDigits(mi->GetName(), name))
|
strcmpIgnoringDigits(mi->GetModelName(), name))
|
||||||
return mi;
|
return mi;
|
||||||
}
|
}
|
||||||
return nil;
|
return nil;
|
||||||
|
@ -149,7 +149,7 @@ CAnimBlendAssocGroup::CreateAssociations(const char *name)
|
||||||
CAnimBlendHierarchy *anim = CAnimManager::GetAnimation(animBlock->firstIndex + i);
|
CAnimBlendHierarchy *anim = CAnimManager::GetAnimation(animBlock->firstIndex + i);
|
||||||
CBaseModelInfo *model = GetModelFromName(anim->name);
|
CBaseModelInfo *model = GetModelFromName(anim->name);
|
||||||
if(model){
|
if(model){
|
||||||
debug("Associated anim %s with model %s\n", anim->name, model->GetName());
|
debug("Associated anim %s with model %s\n", anim->name, model->GetModelName());
|
||||||
RpClump *clump = (RpClump*)model->CreateInstance();
|
RpClump *clump = (RpClump*)model->CreateInstance();
|
||||||
RpAnimBlendClumpInit(clump);
|
RpAnimBlendClumpInit(clump);
|
||||||
assocList[i].Init(clump, anim);
|
assocList[i].Init(clump, anim);
|
||||||
|
|
|
@ -153,8 +153,8 @@ AnimAssocDesc aStdAnimDescs[] = {
|
||||||
{ ANIM_CAR_GETOUT_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_CAR_GETOUT_LOW_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CLOSE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_CAR_CLOSE_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_HOOKERTALK, ASSOC_REPEAT | ASSOC_PARTIAL },
|
{ ANIM_CAR_HOOKERTALK, ASSOC_REPEAT | ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_STANCE2, ASSOC_PARTIAL },
|
{ ANIM_TRAIN_GETIN, ASSOC_PARTIAL },
|
||||||
{ ANIM_IDLE_STANCE3, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_TRAIN_GETOUT, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CRAWLOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_CAR_CRAWLOUT_RHS, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_CRAWLOUT_RHS2, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
{ ANIM_CAR_CRAWLOUT_RHS2, ASSOC_FADEOUTWHENDONE | ASSOC_PARTIAL },
|
||||||
{ ANIM_CAR_ROLLOUT_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
{ ANIM_CAR_ROLLOUT_LHS, ASSOC_DELETEFADEDOUT | ASSOC_PARTIAL | ASSOC_HAS_TRANSLATION | ASSOC_HAS_X_TRANSLATION },
|
||||||
|
|
|
@ -140,8 +140,8 @@ enum AnimationId
|
||||||
ANIM_CAR_CLOSE_RHS,
|
ANIM_CAR_CLOSE_RHS,
|
||||||
ANIM_CAR_HOOKERTALK,
|
ANIM_CAR_HOOKERTALK,
|
||||||
|
|
||||||
ANIM_IDLE_STANCE2,
|
ANIM_TRAIN_GETIN,
|
||||||
ANIM_IDLE_STANCE3,
|
ANIM_TRAIN_GETOUT,
|
||||||
|
|
||||||
ANIM_CAR_CRAWLOUT_RHS,
|
ANIM_CAR_CRAWLOUT_RHS,
|
||||||
ANIM_CAR_CRAWLOUT_RHS2,
|
ANIM_CAR_CRAWLOUT_RHS2,
|
||||||
|
|
|
@ -383,7 +383,7 @@ CCutsceneMgr::CreateCutsceneObject(int modelId)
|
||||||
CCutsceneObject *pCutsceneObject;
|
CCutsceneObject *pCutsceneObject;
|
||||||
|
|
||||||
CStreaming::ImGonnaUseStreamingMemory();
|
CStreaming::ImGonnaUseStreamingMemory();
|
||||||
debug("Created cutscene object %s\n", CModelInfo::GetModelInfo(modelId)->GetName());
|
debug("Created cutscene object %s\n", CModelInfo::GetModelInfo(modelId)->GetModelName());
|
||||||
if (modelId >= MI_CUTOBJ01 && modelId <= MI_CUTOBJ05) {
|
if (modelId >= MI_CUTOBJ01 && modelId <= MI_CUTOBJ05) {
|
||||||
pModelInfo = CModelInfo::GetModelInfo(modelId);
|
pModelInfo = CModelInfo::GetModelInfo(modelId);
|
||||||
pColModel = &CTempColModels::ms_colModelCutObj[modelId - MI_CUTOBJ01];
|
pColModel = &CTempColModels::ms_colModelCutObj[modelId - MI_CUTOBJ01];
|
||||||
|
@ -569,7 +569,7 @@ CCutsceneMgr::AttachObjectToParent(CObject *pObject, CEntity *pAttachTo)
|
||||||
((CCutsceneObject*)pObject)->m_pAttachmentObject = nil;
|
((CCutsceneObject*)pObject)->m_pAttachmentObject = nil;
|
||||||
((CCutsceneObject*)pObject)->m_pAttachTo = RpClumpGetFrame(pAttachTo->GetClump());
|
((CCutsceneObject*)pObject)->m_pAttachTo = RpClumpGetFrame(pAttachTo->GetClump());
|
||||||
|
|
||||||
debug("Attach %s to %s\n", CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetName(), CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetName());
|
debug("Attach %s to %s\n", CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetModelName(), CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetModelName());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -578,9 +578,9 @@ CCutsceneMgr::AttachObjectToFrame(CObject *pObject, CEntity *pAttachTo, const ch
|
||||||
((CCutsceneObject*)pObject)->m_pAttachmentObject = nil;
|
((CCutsceneObject*)pObject)->m_pAttachmentObject = nil;
|
||||||
((CCutsceneObject*)pObject)->m_pAttachTo = RpAnimBlendClumpFindFrame(pAttachTo->GetClump(), frame)->frame;
|
((CCutsceneObject*)pObject)->m_pAttachTo = RpAnimBlendClumpFindFrame(pAttachTo->GetClump(), frame)->frame;
|
||||||
debug("Attach %s to component %s of %s\n",
|
debug("Attach %s to component %s of %s\n",
|
||||||
CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetName(),
|
CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetModelName(),
|
||||||
frame,
|
frame,
|
||||||
CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetName());
|
CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetModelName());
|
||||||
if (RwObjectGetType(pObject->m_rwObject) == rpCLUMP) {
|
if (RwObjectGetType(pObject->m_rwObject) == rpCLUMP) {
|
||||||
RpClump *clump = (RpClump*)pObject->m_rwObject;
|
RpClump *clump = (RpClump*)pObject->m_rwObject;
|
||||||
if (IsClumpSkinned(clump))
|
if (IsClumpSkinned(clump))
|
||||||
|
@ -597,8 +597,8 @@ CCutsceneMgr::AttachObjectToBone(CObject *pObject, CObject *pAttachTo, int bone)
|
||||||
((CCutsceneObject*)pObject)->m_pAttachmentObject = pAttachTo;
|
((CCutsceneObject*)pObject)->m_pAttachmentObject = pAttachTo;
|
||||||
((CCutsceneObject*)pObject)->m_pAttachTo = &matrixArray[id];
|
((CCutsceneObject*)pObject)->m_pAttachTo = &matrixArray[id];
|
||||||
debug("Attach %s to %s\n",
|
debug("Attach %s to %s\n",
|
||||||
CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetName(),
|
CModelInfo::GetModelInfo(pObject->GetModelIndex())->GetModelName(),
|
||||||
CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetName());
|
CModelInfo::GetModelInfo(pAttachTo->GetModelIndex())->GetModelName());
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -466,7 +466,7 @@ public:
|
||||||
void ProcessScriptObject(int32 id); // done
|
void ProcessScriptObject(int32 id); // done
|
||||||
void ProcessSpecial(); // done
|
void ProcessSpecial(); // done
|
||||||
#ifdef GTA_TRAIN
|
#ifdef GTA_TRAIN
|
||||||
bool ProcessTrainNoise(cVehicleParams *params); //done(bcs not exists in VC)
|
bool ProcessTrainNoise(cVehicleParams ¶ms); //done(bcs not exists in VC)
|
||||||
#endif
|
#endif
|
||||||
void ProcessVehicle(CVehicle *vehicle); // done
|
void ProcessVehicle(CVehicle *vehicle); // done
|
||||||
bool ProcessVehicleDoors(cVehicleParams ¶ms); // done
|
bool ProcessVehicleDoors(cVehicleParams ¶ms); // done
|
||||||
|
|
|
@ -814,4 +814,8 @@ enum eSfxSample
|
||||||
SAMPLEBANK_PED_START = SFX_FOOTSTEP_SAND_4 + 1,
|
SAMPLEBANK_PED_START = SFX_FOOTSTEP_SAND_4 + 1,
|
||||||
SAMPLEBANK_PED_END = 9940,
|
SAMPLEBANK_PED_END = 9940,
|
||||||
SAMPLEBANK_PED_MAX = SAMPLEBANK_PED_END + 1,
|
SAMPLEBANK_PED_MAX = SAMPLEBANK_PED_END + 1,
|
||||||
|
|
||||||
|
// LCS: TODO
|
||||||
|
SFX_TRAIN_FAR = NO_SAMPLE,
|
||||||
|
SFX_TRAIN_NEAR = NO_SAMPLE,
|
||||||
};
|
};
|
||||||
|
|
|
@ -1287,7 +1287,7 @@ void CReplay::TriggerPlayback(uint8 cam_mode, float cam_x, float cam_y, float ca
|
||||||
DMAudio.SetEffectsFadeVol(0);
|
DMAudio.SetEffectsFadeVol(0);
|
||||||
DMAudio.SetMusicFadeVol(0);
|
DMAudio.SetMusicFadeVol(0);
|
||||||
CEscalators::Shutdown();
|
CEscalators::Shutdown();
|
||||||
CWaterCreatures::RemoveAll();
|
//CWaterCreatures::RemoveAll();
|
||||||
int current;
|
int current;
|
||||||
for (current = 0; current < NUM_REPLAYBUFFERS; current++)
|
for (current = 0; current < NUM_REPLAYBUFFERS; current++)
|
||||||
if (BufferStatus[current] == REPLAYBUFFER_RECORD)
|
if (BufferStatus[current] == REPLAYBUFFER_RECORD)
|
||||||
|
|
|
@ -2759,7 +2759,7 @@ void CTheScripts::UpdateObjectIndices()
|
||||||
CBaseModelInfo* pModel = CModelInfo::GetModelInfo(j);
|
CBaseModelInfo* pModel = CModelInfo::GetModelInfo(j);
|
||||||
if (!pModel)
|
if (!pModel)
|
||||||
continue;
|
continue;
|
||||||
strcpy(name, pModel->GetName());
|
strcpy(name, pModel->GetModelName());
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
for (int k = 0; k < USED_OBJECT_NAME_LENGTH && name[k]; k++)
|
for (int k = 0; k < USED_OBJECT_NAME_LENGTH && name[k]; k++)
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -625,7 +625,7 @@ int8 CRunningScript::ProcessCommands1200To1299(int32 command)
|
||||||
key[i] = tolower(key[i]);
|
key[i] = tolower(key[i]);
|
||||||
CPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed;
|
CPed* pPed = CWorld::Players[ScriptParams[0]].m_pPed;
|
||||||
script_assert(pPed);
|
script_assert(pPed);
|
||||||
UpdateCompareFlag(strcmp(key, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetName()) == 0);
|
UpdateCompareFlag(strcmp(key, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetModelName()) == 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case COMMAND_SET_PLAYER_CAN_DO_DRIVE_BY:
|
case COMMAND_SET_PLAYER_CAN_DO_DRIVE_BY:
|
||||||
|
|
|
@ -443,7 +443,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 1);
|
CollectParameters(&m_nIp, 1);
|
||||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||||
*(CVector*)ScriptParams[0] = GAME_SPEED_TO_METERS_PER_SECOND * pObject->GetMoveSpeed();
|
*(CVector*)&ScriptParams[0] = GAME_SPEED_TO_METERS_PER_SECOND * pObject->GetMoveSpeed();
|
||||||
StoreParameters(&m_nIp, 3);
|
StoreParameters(&m_nIp, 3);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 4);
|
CollectParameters(&m_nIp, 4);
|
||||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||||
CVector newSpeed = pObject->GetTurnSpeed() + *(CVector*)ScriptParams[1] / GAME_SPEED_TO_METERS_PER_SECOND;
|
CVector newSpeed = pObject->GetTurnSpeed() + *(CVector*)&ScriptParams[1] / GAME_SPEED_TO_METERS_PER_SECOND;
|
||||||
if (pObject->bIsStatic) {
|
if (pObject->bIsStatic) {
|
||||||
pObject->SetIsStatic(false);
|
pObject->SetIsStatic(false);
|
||||||
pObject->AddToMovingList();
|
pObject->AddToMovingList();
|
||||||
|
@ -466,7 +466,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 4);
|
CollectParameters(&m_nIp, 4);
|
||||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||||
CVector newSpeed = *(CVector*)ScriptParams[1] / GAME_SPEED_TO_METERS_PER_SECOND;
|
CVector newSpeed = *(CVector*)&ScriptParams[1] / GAME_SPEED_TO_METERS_PER_SECOND;
|
||||||
if (pObject->bIsStatic) {
|
if (pObject->bIsStatic) {
|
||||||
pObject->SetIsStatic(false);
|
pObject->SetIsStatic(false);
|
||||||
pObject->AddToMovingList();
|
pObject->AddToMovingList();
|
||||||
|
@ -484,13 +484,13 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
case COMMAND_GET_ANGLE_BETWEEN_2D_VECTORS:
|
case COMMAND_GET_ANGLE_BETWEEN_2D_VECTORS:
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 4);
|
CollectParameters(&m_nIp, 4);
|
||||||
CVector2D v1 = *(CVector2D*)ScriptParams[0];
|
CVector2D v1 = *(CVector2D*)&ScriptParams[0];
|
||||||
CVector2D v2 = *(CVector2D*)ScriptParams[2];
|
CVector2D v2 = *(CVector2D*)&ScriptParams[2];
|
||||||
float c = DotProduct2D(v1, v2) / (v1.Magnitude() * v2.Magnitude());
|
float c = DotProduct2D(v1, v2) / (v1.Magnitude() * v2.Magnitude());
|
||||||
#ifdef FIX_BUGS // command is a SA leftover where it was fixed to this
|
#ifdef FIX_BUGS // command is a SA leftover where it was fixed to this
|
||||||
*(float*)ScriptParams[0] = RADTODEG(Acos(c));
|
*(float*)&ScriptParams[0] = RADTODEG(Acos(c));
|
||||||
#else
|
#else
|
||||||
*(float*)ScriptParams[0] = Acos(c);
|
*(float*)&ScriptParams[0] = Acos(c);
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -521,7 +521,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 1);
|
CollectParameters(&m_nIp, 1);
|
||||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||||
*(CVector*)ScriptParams[0] = pObject->GetTurnSpeed() * GAME_SPEED_TO_METERS_PER_SECOND;
|
*(CVector*)&ScriptParams[0] = pObject->GetTurnSpeed() * GAME_SPEED_TO_METERS_PER_SECOND;
|
||||||
StoreParameters(&m_nIp, 3);
|
StoreParameters(&m_nIp, 3);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -552,7 +552,7 @@ int8 CRunningScript::ProcessCommands1400To1499(int32 command)
|
||||||
{
|
{
|
||||||
CollectParameters(&m_nIp, 1);
|
CollectParameters(&m_nIp, 1);
|
||||||
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
CObject* pObject = CPools::GetObjectPool()->GetAt(ScriptParams[0]);
|
||||||
*(float*)ScriptParams[0] = pObject->GetMoveSpeed().Magnitude() * GAME_SPEED_TO_METERS_PER_SECOND;
|
*(float*)&ScriptParams[0] = pObject->GetMoveSpeed().Magnitude() * GAME_SPEED_TO_METERS_PER_SECOND;
|
||||||
StoreParameters(&m_nIp, 1);
|
StoreParameters(&m_nIp, 1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -492,7 +492,7 @@ bool
|
||||||
CFileLoader::StartLoadClumpFile(RwStream *stream, uint32 id)
|
CFileLoader::StartLoadClumpFile(RwStream *stream, uint32 id)
|
||||||
{
|
{
|
||||||
if(RwStreamFindChunk(stream, rwID_CLUMP, nil, nil)){
|
if(RwStreamFindChunk(stream, rwID_CLUMP, nil, nil)){
|
||||||
printf("Start loading %s\n", CModelInfo::GetModelInfo(id)->GetName());
|
printf("Start loading %s\n", CModelInfo::GetModelInfo(id)->GetModelName());
|
||||||
return RpClumpGtaStreamRead1(stream);
|
return RpClumpGtaStreamRead1(stream);
|
||||||
}else{
|
}else{
|
||||||
printf("FAILED\n");
|
printf("FAILED\n");
|
||||||
|
@ -506,7 +506,7 @@ CFileLoader::FinishLoadClumpFile(RwStream *stream, uint32 id)
|
||||||
RpClump *clump;
|
RpClump *clump;
|
||||||
CClumpModelInfo *mi;
|
CClumpModelInfo *mi;
|
||||||
|
|
||||||
printf("Finish loading %s\n", CModelInfo::GetModelInfo(id)->GetName());
|
printf("Finish loading %s\n", CModelInfo::GetModelInfo(id)->GetModelName());
|
||||||
clump = RpClumpGtaStreamRead2(stream);
|
clump = RpClumpGtaStreamRead2(stream);
|
||||||
|
|
||||||
if(clump){
|
if(clump){
|
||||||
|
@ -739,7 +739,7 @@ CFileLoader::LoadObject(const char *line)
|
||||||
}
|
}
|
||||||
|
|
||||||
mi = CModelInfo::AddSimpleModel(id);
|
mi = CModelInfo::AddSimpleModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetNumAtomics(numObjs);
|
mi->SetNumAtomics(numObjs);
|
||||||
mi->SetLodDistances(dist);
|
mi->SetLodDistances(dist);
|
||||||
SetModelInfoFlags(mi, flags);
|
SetModelInfoFlags(mi, flags);
|
||||||
|
@ -787,7 +787,7 @@ CFileLoader::LoadTimeObject(const char *line)
|
||||||
}
|
}
|
||||||
|
|
||||||
mi = CModelInfo::AddTimeModel(id);
|
mi = CModelInfo::AddTimeModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetNumAtomics(numObjs);
|
mi->SetNumAtomics(numObjs);
|
||||||
mi->SetLodDistances(dist);
|
mi->SetLodDistances(dist);
|
||||||
SetModelInfoFlags(mi, flags);
|
SetModelInfoFlags(mi, flags);
|
||||||
|
@ -813,7 +813,7 @@ CFileLoader::LoadWeaponObject(const char *line)
|
||||||
sscanf(line, "%d %s %s %s %d %f", &id, model, txd, animFile, &numObjs, &dist);
|
sscanf(line, "%d %s %s %s %d %f", &id, model, txd, animFile, &numObjs, &dist);
|
||||||
|
|
||||||
mi = CModelInfo::AddWeaponModel(id);
|
mi = CModelInfo::AddWeaponModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetNumAtomics(1);
|
mi->SetNumAtomics(1);
|
||||||
mi->m_lodDistances[0] = dist;
|
mi->m_lodDistances[0] = dist;
|
||||||
mi->SetTexDictionary(txd);
|
mi->SetTexDictionary(txd);
|
||||||
|
@ -832,7 +832,7 @@ CFileLoader::LoadClumpObject(const char *line)
|
||||||
|
|
||||||
if(sscanf(line, "%d %s %s", &id, model, txd) == 3){
|
if(sscanf(line, "%d %s %s", &id, model, txd) == 3){
|
||||||
mi = CModelInfo::AddClumpModel(id);
|
mi = CModelInfo::AddClumpModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetTexDictionary(txd);
|
mi->SetTexDictionary(txd);
|
||||||
mi->SetColModel(&CTempColModels::ms_colModelBBox);
|
mi->SetColModel(&CTempColModels::ms_colModelBBox);
|
||||||
}
|
}
|
||||||
|
@ -857,7 +857,7 @@ CFileLoader::LoadVehicleObject(const char *line)
|
||||||
&normalSplay);
|
&normalSplay);
|
||||||
|
|
||||||
mi = CModelInfo::AddVehicleModel(id);
|
mi = CModelInfo::AddVehicleModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetTexDictionary(txd);
|
mi->SetTexDictionary(txd);
|
||||||
mi->SetAnimFile(animFile);
|
mi->SetAnimFile(animFile);
|
||||||
for(p = gamename; *p; p++)
|
for(p = gamename; *p; p++)
|
||||||
|
@ -938,7 +938,7 @@ CFileLoader::LoadPedObject(const char *line)
|
||||||
animFile, &radio1, &radio2);
|
animFile, &radio1, &radio2);
|
||||||
|
|
||||||
mi = CModelInfo::AddPedModel(id);
|
mi = CModelInfo::AddPedModel(id);
|
||||||
mi->SetName(model);
|
mi->SetModelName(model);
|
||||||
mi->SetTexDictionary(txd);
|
mi->SetTexDictionary(txd);
|
||||||
mi->SetAnimFile(animFile);
|
mi->SetAnimFile(animFile);
|
||||||
mi->SetColModel(&CTempColModels::ms_colModelPed1);
|
mi->SetColModel(&CTempColModels::ms_colModelPed1);
|
||||||
|
@ -1208,7 +1208,7 @@ CFileLoader::LoadObjectInstance(const char *line)
|
||||||
assert(mi->IsSimple());
|
assert(mi->IsSimple());
|
||||||
|
|
||||||
if(!CStreaming::IsObjectInCdImage(id))
|
if(!CStreaming::IsObjectInCdImage(id))
|
||||||
debug("Not in cdimage %s\n", mi->GetName());
|
debug("Not in cdimage %s\n", mi->GetModelName());
|
||||||
|
|
||||||
angle = -RADTODEG(2.0f * acosf(angle));
|
angle = -RADTODEG(2.0f * acosf(angle));
|
||||||
xform = RwMatrixCreate();
|
xform = RwMatrixCreate();
|
||||||
|
@ -1441,7 +1441,7 @@ CFileLoader::ReloadObject(const char *line)
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
mi &&
|
mi &&
|
||||||
#endif
|
#endif
|
||||||
mi->GetModelType() == MITYPE_SIMPLE && !strcmp(mi->GetName(), model) && mi->m_numAtomics == numObjs) {
|
mi->GetModelType() == MITYPE_SIMPLE && !strcmp(mi->GetModelName(), model) && mi->m_numAtomics == numObjs) {
|
||||||
mi->SetLodDistances(dist);
|
mi->SetLodDistances(dist);
|
||||||
SetModelInfoFlags(mi, flags);
|
SetModelInfoFlags(mi, flags);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -661,8 +661,8 @@ public:
|
||||||
int32 m_nSelectedScreenMode;
|
int32 m_nSelectedScreenMode;
|
||||||
#endif
|
#endif
|
||||||
#ifdef MULTISAMPLING
|
#ifdef MULTISAMPLING
|
||||||
static int8 m_nPrefsMSAALevel;
|
int8 m_nPrefsMSAALevel;
|
||||||
static int8 m_nDisplayMSAALevel;
|
int8 m_nDisplayMSAALevel;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
enum LANGUAGE
|
enum LANGUAGE
|
||||||
|
|
|
@ -587,7 +587,7 @@ bool CGame::ShutDown(void)
|
||||||
CPlane::Shutdown();
|
CPlane::Shutdown();
|
||||||
CTrain::Shutdown();
|
CTrain::Shutdown();
|
||||||
CScriptPaths::Shutdown();
|
CScriptPaths::Shutdown();
|
||||||
CWaterCreatures::RemoveAll();
|
//CWaterCreatures::RemoveAll();
|
||||||
CSpecialFX::Shutdown();
|
CSpecialFX::Shutdown();
|
||||||
CGarages::Shutdown();
|
CGarages::Shutdown();
|
||||||
CMovingThings::Shutdown();
|
CMovingThings::Shutdown();
|
||||||
|
@ -749,7 +749,7 @@ void CGame::ShutDownForRestart(void)
|
||||||
CRadar::RemoveRadarSections();
|
CRadar::RemoveRadarSections();
|
||||||
FrontEndMenuManager.UnloadTextures();
|
FrontEndMenuManager.UnloadTextures();
|
||||||
CParticleObject::RemoveAllExpireableParticleObjects();
|
CParticleObject::RemoveAllExpireableParticleObjects();
|
||||||
CWaterCreatures::RemoveAll();
|
//CWaterCreatures::RemoveAll();
|
||||||
CSetPieces::Init();
|
CSetPieces::Init();
|
||||||
CPedType::Shutdown();
|
CPedType::Shutdown();
|
||||||
CSpecialFX::Shutdown();
|
CSpecialFX::Shutdown();
|
||||||
|
|
|
@ -6,8 +6,9 @@ enum eLevelName {
|
||||||
LEVEL_INDUSTRIAL,
|
LEVEL_INDUSTRIAL,
|
||||||
LEVEL_COMMERCIAL,
|
LEVEL_COMMERCIAL,
|
||||||
LEVEL_SUBURBAN,
|
LEVEL_SUBURBAN,
|
||||||
|
LEVEL_UNDERGROUND,
|
||||||
|
|
||||||
NUM_LEVELS // LCS: should be 5 eventually...
|
NUM_LEVELS
|
||||||
};
|
};
|
||||||
|
|
||||||
enum eAreaName {
|
enum eAreaName {
|
||||||
|
|
110
src/core/KeyGen.cpp
Normal file
110
src/core/KeyGen.cpp
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
#include "common.h"
|
||||||
|
#include "KeyGen.h"
|
||||||
|
#if defined _WIN32 && !defined __MINGW32__
|
||||||
|
#include "ctype.h"
|
||||||
|
#else
|
||||||
|
#include <cwctype>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
uint32 CKeyGen::keyTable[256] =
|
||||||
|
{
|
||||||
|
0, 0x77073096, 0xEE0E612C, 0x990951BA,
|
||||||
|
0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3,
|
||||||
|
0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988,
|
||||||
|
0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91,
|
||||||
|
0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE,
|
||||||
|
0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7,
|
||||||
|
0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
|
||||||
|
0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5,
|
||||||
|
0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172,
|
||||||
|
0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B,
|
||||||
|
0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940,
|
||||||
|
0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59,
|
||||||
|
0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116,
|
||||||
|
0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
|
||||||
|
0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924,
|
||||||
|
0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D,
|
||||||
|
0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A,
|
||||||
|
0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433,
|
||||||
|
0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818,
|
||||||
|
0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01,
|
||||||
|
0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
|
||||||
|
0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457,
|
||||||
|
0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C,
|
||||||
|
0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65,
|
||||||
|
0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2,
|
||||||
|
0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB,
|
||||||
|
0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0,
|
||||||
|
0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
|
||||||
|
0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086,
|
||||||
|
0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F,
|
||||||
|
0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4,
|
||||||
|
0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD,
|
||||||
|
0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A,
|
||||||
|
0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683,
|
||||||
|
0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
|
||||||
|
0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1,
|
||||||
|
0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE,
|
||||||
|
0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7,
|
||||||
|
0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC,
|
||||||
|
0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5,
|
||||||
|
0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252,
|
||||||
|
0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
|
||||||
|
0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60,
|
||||||
|
0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79,
|
||||||
|
0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236,
|
||||||
|
0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F,
|
||||||
|
0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04,
|
||||||
|
0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D,
|
||||||
|
0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
|
||||||
|
0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713,
|
||||||
|
0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38,
|
||||||
|
0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21,
|
||||||
|
0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E,
|
||||||
|
0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777,
|
||||||
|
0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C,
|
||||||
|
0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
|
||||||
|
0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2,
|
||||||
|
0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB,
|
||||||
|
0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0,
|
||||||
|
0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9,
|
||||||
|
0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6,
|
||||||
|
0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF,
|
||||||
|
0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
|
||||||
|
0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32
|
||||||
|
CKeyGen::GetKey(const char *str, int size)
|
||||||
|
{
|
||||||
|
uint32 key = 0xffffffff;
|
||||||
|
for (int i = 0; i < size; i++)
|
||||||
|
key = keyTable[(key ^ str[i]) & 0xFF] ^ (key >> 8);
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32
|
||||||
|
CKeyGen::GetKey(const char *str)
|
||||||
|
{
|
||||||
|
uint32 key = 0xffffffff;
|
||||||
|
while(*str != '\0')
|
||||||
|
key = keyTable[(key ^ *(str++)) & 0xFF] ^ (key >> 8);
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32
|
||||||
|
CKeyGen::GetUppercaseKey(const char *str)
|
||||||
|
{
|
||||||
|
uint32 key = 0xffffffff;
|
||||||
|
while (*str != '\0')
|
||||||
|
key = keyTable[(key ^ toupper(*(str++))) & 0xFF] ^ (key >> 8);
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32
|
||||||
|
CKeyGen::AppendStringToKey(uint32 key, const char *str)
|
||||||
|
{
|
||||||
|
while (*str != '\0')
|
||||||
|
key = keyTable[(key ^ *(str++)) & 0xFF] ^ (key >> 8);
|
||||||
|
return key;
|
||||||
|
}
|
11
src/core/KeyGen.h
Normal file
11
src/core/KeyGen.h
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
class CKeyGen
|
||||||
|
{
|
||||||
|
static uint32 keyTable[256];
|
||||||
|
public:
|
||||||
|
static uint32 GetKey(const char *str, int size);
|
||||||
|
static uint32 GetKey(const char *str);
|
||||||
|
static uint32 GetUppercaseKey(const char *str);
|
||||||
|
static uint32 AppendStringToKey(uint32 key, const char *str);
|
||||||
|
};
|
|
@ -536,7 +536,7 @@ INITSAVEBUF
|
||||||
#endif
|
#endif
|
||||||
CopyToBuf(buf, CWanted::MaximumWantedLevel);
|
CopyToBuf(buf, CWanted::MaximumWantedLevel);
|
||||||
CopyToBuf(buf, CWanted::nMaximumWantedLevel);
|
CopyToBuf(buf, CWanted::nMaximumWantedLevel);
|
||||||
memcpy(buf, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetName(), MAX_MODEL_NAME);
|
memcpy(buf, CModelInfo::GetModelInfo(pPed->GetModelIndex())->GetModelName(), MAX_MODEL_NAME);
|
||||||
SkipSaveBuf(buf, MAX_MODEL_NAME);
|
SkipSaveBuf(buf, MAX_MODEL_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -497,7 +497,7 @@ GetObjectName(int streamId)
|
||||||
{
|
{
|
||||||
static char objname[32];
|
static char objname[32];
|
||||||
if(streamId < STREAM_OFFSET_TXD)
|
if(streamId < STREAM_OFFSET_TXD)
|
||||||
sprintf(objname, "%s.dff", CModelInfo::GetModelInfo(streamId)->GetName());
|
sprintf(objname, "%s.dff", CModelInfo::GetModelInfo(streamId)->GetModelName());
|
||||||
else if(streamId >= STREAM_OFFSET_TXD && streamId < STREAM_OFFSET_COL)
|
else if(streamId >= STREAM_OFFSET_TXD && streamId < STREAM_OFFSET_COL)
|
||||||
sprintf(objname, "%s.txd", CTxdStore::GetTxdName(streamId-STREAM_OFFSET_TXD));
|
sprintf(objname, "%s.txd", CTxdStore::GetTxdName(streamId-STREAM_OFFSET_TXD));
|
||||||
else if(streamId >= STREAM_OFFSET_COL && streamId < STREAM_OFFSET_ANIM)
|
else if(streamId >= STREAM_OFFSET_COL && streamId < STREAM_OFFSET_ANIM)
|
||||||
|
@ -592,7 +592,7 @@ CStreaming::ConvertBufferToObject(int8 *buf, int32 streamId)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!success){
|
if(!success){
|
||||||
debug("Failed to load %s\n", CModelInfo::GetModelInfo(streamId)->GetName());
|
debug("Failed to load %s\n", CModelInfo::GetModelInfo(streamId)->GetModelName());
|
||||||
RemoveModel(streamId);
|
RemoveModel(streamId);
|
||||||
ReRequestModel(streamId);
|
ReRequestModel(streamId);
|
||||||
RwStreamClose(stream, &mem);
|
RwStreamClose(stream, &mem);
|
||||||
|
@ -1009,7 +1009,7 @@ CStreaming::RequestSpecialModel(int32 modelId, const char *modelName, int32 flag
|
||||||
|
|
||||||
mi = CModelInfo::GetModelInfo(modelId);
|
mi = CModelInfo::GetModelInfo(modelId);
|
||||||
if(strncasecmp("CSPlay", modelName, 6) == 0){
|
if(strncasecmp("CSPlay", modelName, 6) == 0){
|
||||||
char *curname = CModelInfo::GetModelInfo(MI_PLAYER)->GetName();
|
char *curname = CModelInfo::GetModelInfo(MI_PLAYER)->GetModelName();
|
||||||
for(int i = 0; CSnames[i][0]; i++){
|
for(int i = 0; CSnames[i][0]; i++){
|
||||||
if(strcasecmp(curname, IGnames[i]) == 0){
|
if(strcasecmp(curname, IGnames[i]) == 0){
|
||||||
modelName = CSnames[i];
|
modelName = CSnames[i];
|
||||||
|
@ -1017,7 +1017,7 @@ CStreaming::RequestSpecialModel(int32 modelId, const char *modelName, int32 flag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!CGeneral::faststrcmp(mi->GetName(), modelName)){
|
if(!CGeneral::faststrcmp(mi->GetModelName(), modelName)){
|
||||||
// Already have the correct name, just request it
|
// Already have the correct name, just request it
|
||||||
RequestModel(modelId, flags);
|
RequestModel(modelId, flags);
|
||||||
return;
|
return;
|
||||||
|
@ -1042,8 +1042,8 @@ CStreaming::RequestSpecialModel(int32 modelId, const char *modelName, int32 flag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(oldName, mi->GetName());
|
strcpy(oldName, mi->GetModelName());
|
||||||
mi->SetName(modelName);
|
mi->SetModelName(modelName);
|
||||||
|
|
||||||
// What exactly is going on here?
|
// What exactly is going on here?
|
||||||
if(CModelInfo::GetModelInfo(oldName, nil)){
|
if(CModelInfo::GetModelInfo(oldName, nil)){
|
||||||
|
@ -1842,11 +1842,11 @@ CStreaming::StreamZoneModels(const CVector &pos)
|
||||||
int newMI = CPopulation::ms_pPedGroups[ms_currentPedGrp].models[j];
|
int newMI = CPopulation::ms_pPedGroups[ms_currentPedGrp].models[j];
|
||||||
if(newMI != oldMI){
|
if(newMI != oldMI){
|
||||||
RequestModel(newMI, STREAMFLAGS_DEPENDENCY);
|
RequestModel(newMI, STREAMFLAGS_DEPENDENCY);
|
||||||
debug("Request Ped %s\n", CModelInfo::GetModelInfo(newMI)->GetName());
|
debug("Request Ped %s\n", CModelInfo::GetModelInfo(newMI)->GetModelName());
|
||||||
if(ms_numPedsLoaded == MAXZONEPEDSLOADED){
|
if(ms_numPedsLoaded == MAXZONEPEDSLOADED){
|
||||||
SetModelIsDeletable(oldMI);
|
SetModelIsDeletable(oldMI);
|
||||||
SetModelTxdIsDeletable(oldMI);
|
SetModelTxdIsDeletable(oldMI);
|
||||||
debug("Remove Ped %s\n", CModelInfo::GetModelInfo(oldMI)->GetName());
|
debug("Remove Ped %s\n", CModelInfo::GetModelInfo(oldMI)->GetModelName());
|
||||||
}else
|
}else
|
||||||
ms_numPedsLoaded++;
|
ms_numPedsLoaded++;
|
||||||
timeBeforeNextLoad = 300;
|
timeBeforeNextLoad = 300;
|
||||||
|
@ -3242,7 +3242,7 @@ CStreaming::PrintStreamingBufferState()
|
||||||
sprintf(str, "txd %s, refs %d, size %dK, flags 0x%x", CTxdStore::GetTxdName(modelIndex - STREAM_OFFSET_TXD),
|
sprintf(str, "txd %s, refs %d, size %dK, flags 0x%x", CTxdStore::GetTxdName(modelIndex - STREAM_OFFSET_TXD),
|
||||||
CTxdStore::GetNumRefs(modelIndex - STREAM_OFFSET_TXD), 2 * size, streamingInfo->m_flags);
|
CTxdStore::GetNumRefs(modelIndex - STREAM_OFFSET_TXD), 2 * size, streamingInfo->m_flags);
|
||||||
else
|
else
|
||||||
sprintf(str, "model %d,%s, refs%d, size%dK, flags%x", modelIndex, modelInfo->GetName(), modelInfo->GetNumRefs(), 2 * size,
|
sprintf(str, "model %d,%s, refs%d, size%dK, flags%x", modelIndex, modelInfo->GetModelName(), modelInfo->GetNumRefs(), 2 * size,
|
||||||
streamingInfo->m_flags);
|
streamingInfo->m_flags);
|
||||||
AsciiToUnicode(str, wstr);
|
AsciiToUnicode(str, wstr);
|
||||||
CFont::PrintString(24.0f, y, wstr);
|
CFont::PrintString(24.0f, y, wstr);
|
||||||
|
|
|
@ -197,6 +197,8 @@ enum Config {
|
||||||
//#define COMPRESSED_COL_VECTORS // use compressed vectors for collision vertices
|
//#define COMPRESSED_COL_VECTORS // use compressed vectors for collision vertices
|
||||||
//#define ANIM_COMPRESSION // only keep most recently used anims uncompressed
|
//#define ANIM_COMPRESSION // only keep most recently used anims uncompressed
|
||||||
|
|
||||||
|
#define GTA_TRAIN
|
||||||
|
|
||||||
#if defined GTA_PS2
|
#if defined GTA_PS2
|
||||||
# define GTA_PS2_STUFF
|
# define GTA_PS2_STUFF
|
||||||
# define RANDOMSPLASH
|
# define RANDOMSPLASH
|
||||||
|
@ -312,7 +314,7 @@ enum Config {
|
||||||
# define GRAPHICS_MENU_OPTIONS // otherwise Display settings will be scrollable
|
# define GRAPHICS_MENU_OPTIONS // otherwise Display settings will be scrollable
|
||||||
//# define NO_ISLAND_LOADING // disable loadscreen between islands via loading all island data at once, consumes more memory and CPU
|
//# define NO_ISLAND_LOADING // disable loadscreen between islands via loading all island data at once, consumes more memory and CPU
|
||||||
# define CUTSCENE_BORDERS_SWITCH
|
# define CUTSCENE_BORDERS_SWITCH
|
||||||
//# define MULTISAMPLING // adds MSAA option
|
# define MULTISAMPLING // adds MSAA option
|
||||||
# define INVERT_LOOK_FOR_PAD // enable the hidden option
|
# define INVERT_LOOK_FOR_PAD // enable the hidden option
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -382,7 +384,6 @@ static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually
|
||||||
|
|
||||||
#ifdef LIBRW
|
#ifdef LIBRW
|
||||||
// these are not supported with librw yet
|
// these are not supported with librw yet
|
||||||
# undef MULTISAMPLING
|
|
||||||
#endif
|
#endif
|
||||||
// IMG
|
// IMG
|
||||||
#define BIG_IMG // allows to read larger img files
|
#define BIG_IMG // allows to read larger img files
|
||||||
|
|
|
@ -626,7 +626,7 @@ CEntity::SetupBigBuilding(void)
|
||||||
if(mi->m_lodDistances[0] > 2500.0f || mi->m_ignoreDrawDist)
|
if(mi->m_lodDistances[0] > 2500.0f || mi->m_ignoreDrawDist)
|
||||||
m_level = LEVEL_GENERIC;
|
m_level = LEVEL_GENERIC;
|
||||||
else if(m_level == LEVEL_GENERIC)
|
else if(m_level == LEVEL_GENERIC)
|
||||||
printf("%s isn't in a level\n", mi->GetName());
|
printf("%s isn't in a level\n", mi->GetModelName());
|
||||||
}
|
}
|
||||||
|
|
||||||
float WindTabel[] = {
|
float WindTabel[] = {
|
||||||
|
|
|
@ -50,8 +50,8 @@ public:
|
||||||
bool IsBuilding(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; }
|
bool IsBuilding(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME; }
|
||||||
bool IsSimple(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME || m_type == MITYPE_WEAPON; }
|
bool IsSimple(void) { return m_type == MITYPE_SIMPLE || m_type == MITYPE_TIME || m_type == MITYPE_WEAPON; }
|
||||||
bool IsClump(void) { return m_type == MITYPE_CLUMP || m_type == MITYPE_PED || m_type == MITYPE_VEHICLE; }
|
bool IsClump(void) { return m_type == MITYPE_CLUMP || m_type == MITYPE_PED || m_type == MITYPE_VEHICLE; }
|
||||||
char *GetName(void) { return m_name; }
|
char *GetModelName(void) { return m_name; }
|
||||||
void SetName(const char *name) { strncpy(m_name, name, MAX_MODEL_NAME); }
|
void SetModelName(const char *name) { strncpy(m_name, name, MAX_MODEL_NAME); }
|
||||||
void SetColModel(CColModel *col, bool owns = false){
|
void SetColModel(CColModel *col, bool owns = false){
|
||||||
m_colModel = col; m_bOwnsColModel = owns; }
|
m_colModel = col; m_bOwnsColModel = owns; }
|
||||||
CColModel *GetColModel(void) { return m_colModel; }
|
CColModel *GetColModel(void) { return m_colModel; }
|
||||||
|
|
|
@ -189,7 +189,7 @@ CModelInfo::GetModelInfo(const char *name, int *id)
|
||||||
CBaseModelInfo *modelinfo;
|
CBaseModelInfo *modelinfo;
|
||||||
for(int i = 0; i < MODELINFOSIZE; i++){
|
for(int i = 0; i < MODELINFOSIZE; i++){
|
||||||
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
||||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name)){
|
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name)){
|
||||||
if(id)
|
if(id)
|
||||||
*id = i;
|
*id = i;
|
||||||
return modelinfo;
|
return modelinfo;
|
||||||
|
@ -207,7 +207,7 @@ CModelInfo::GetModelInfo(const char *name, int minIndex, int maxIndex)
|
||||||
CBaseModelInfo *modelinfo;
|
CBaseModelInfo *modelinfo;
|
||||||
for(int i = minIndex; i <= maxIndex; i++){
|
for(int i = minIndex; i <= maxIndex; i++){
|
||||||
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
modelinfo = CModelInfo::ms_modelInfoPtrs[i];
|
||||||
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetName(), name))
|
if(modelinfo && !CGeneral::faststricmp(modelinfo->GetModelName(), name))
|
||||||
return modelinfo;
|
return modelinfo;
|
||||||
}
|
}
|
||||||
return nil;
|
return nil;
|
||||||
|
|
|
@ -48,7 +48,7 @@ CPedModelInfo::SetClump(RpClump *clump)
|
||||||
if(m_hitColModel == nil)
|
if(m_hitColModel == nil)
|
||||||
CreateHitColModelSkinned(clump);
|
CreateHitColModelSkinned(clump);
|
||||||
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPedCB);
|
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPedCB);
|
||||||
if(strcmp(GetName(), "player") == 0)
|
if(strcmp(GetModelName(), "player") == 0)
|
||||||
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
|
RpClumpForAllAtomics(m_clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -167,7 +167,7 @@ CSimpleModelInfo::FindRelatedModel(int32 minID, int32 maxID)
|
||||||
for(i = minID; i <= maxID; i++){
|
for(i = minID; i <= maxID; i++){
|
||||||
mi = CModelInfo::GetModelInfo(i);
|
mi = CModelInfo::GetModelInfo(i);
|
||||||
if(mi && mi != this &&
|
if(mi && mi != this &&
|
||||||
!CGeneral::faststrcmp(GetName()+3, mi->GetName()+3)){
|
!CGeneral::faststrcmp(GetModelName()+3, mi->GetModelName()+3)){
|
||||||
assert(mi->IsSimple());
|
assert(mi->IsSimple());
|
||||||
this->SetRelatedModel((CSimpleModelInfo*)mi);
|
this->SetRelatedModel((CSimpleModelInfo*)mi);
|
||||||
return;
|
return;
|
||||||
|
@ -189,7 +189,7 @@ CSimpleModelInfo::SetupBigBuilding(int32 minID, int32 maxID)
|
||||||
m_lodDistances[2] = related->GetLargestLodDistance()/TheCamera.LODDistMultiplier;
|
m_lodDistances[2] = related->GetLargestLodDistance()/TheCamera.LODDistMultiplier;
|
||||||
if(m_drawLast){
|
if(m_drawLast){
|
||||||
m_drawLast = false;
|
m_drawLast = false;
|
||||||
debug("%s was draw last\n", GetName());
|
debug("%s was draw last\n", GetModelName());
|
||||||
}
|
}
|
||||||
}else
|
}else
|
||||||
m_lodDistances[2] = NEAR_DRAW_DIST;
|
m_lodDistances[2] = NEAR_DRAW_DIST;
|
||||||
|
|
|
@ -11,7 +11,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
|
||||||
char *p;
|
char *p;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
strcpy(name, GetName());
|
strcpy(name, GetModelName());
|
||||||
// change _nt to _dy
|
// change _nt to _dy
|
||||||
if(p = strstr(name, "_nt"))
|
if(p = strstr(name, "_nt"))
|
||||||
strncpy(p, "_dy", 4);
|
strncpy(p, "_dy", 4);
|
||||||
|
@ -24,7 +24,7 @@ CTimeModelInfo::FindOtherTimeModel(void)
|
||||||
for(i = 0; i < MODELINFOSIZE; i++){
|
for(i = 0; i < MODELINFOSIZE; i++){
|
||||||
CBaseModelInfo *mi = CModelInfo::GetModelInfo(i);
|
CBaseModelInfo *mi = CModelInfo::GetModelInfo(i);
|
||||||
if (mi && mi->GetModelType() == MITYPE_TIME &&
|
if (mi && mi->GetModelType() == MITYPE_TIME &&
|
||||||
!CGeneral::faststrncmp(name, mi->GetName(), MAX_MODEL_NAME)){
|
!CGeneral::faststrncmp(name, mi->GetModelName(), MAX_MODEL_NAME)){
|
||||||
m_otherTimeModelID = i;
|
m_otherTimeModelID = i;
|
||||||
return (CTimeModelInfo*)mi;
|
return (CTimeModelInfo*)mi;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4914,8 +4914,8 @@ CPed::SetAnimOffsetForEnterOrExitVehicle(void)
|
||||||
vecPedVanRearDoorAnimOffset = lastFrame->translation;
|
vecPedVanRearDoorAnimOffset = lastFrame->translation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// I think this is leftover and ANIM_TRAIN_GETOUT
|
|
||||||
enterAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, ANIM_IDLE_STANCE3)->hierarchy;
|
enterAssoc = CAnimManager::GetAnimAssociation(ASSOCGRP_STD, ANIM_TRAIN_GETOUT)->hierarchy;
|
||||||
seq = enterAssoc->sequences;
|
seq = enterAssoc->sequences;
|
||||||
CAnimManager::UncompressAnimation(enterAssoc);
|
CAnimManager::UncompressAnimation(enterAssoc);
|
||||||
if (seq->numFrames > 0) {
|
if (seq->numFrames > 0) {
|
||||||
|
|
|
@ -481,7 +481,7 @@ void CHud::Draw()
|
||||||
CBaseModelInfo *weaponModel = CModelInfo::GetModelInfo(weaponInfo->m_nModelId);
|
CBaseModelInfo *weaponModel = CModelInfo::GetModelInfo(weaponInfo->m_nModelId);
|
||||||
RwTexDictionary *weaponTxd = CTxdStore::GetSlot(weaponModel->GetTxdSlot())->texDict;
|
RwTexDictionary *weaponTxd = CTxdStore::GetSlot(weaponModel->GetTxdSlot())->texDict;
|
||||||
if (weaponTxd) {
|
if (weaponTxd) {
|
||||||
RwTexture *weaponIcon = RwTexDictionaryFindNamedTexture(weaponTxd, weaponModel->GetName());
|
RwTexture *weaponIcon = RwTexDictionaryFindNamedTexture(weaponTxd, weaponModel->GetModelName());
|
||||||
if (weaponIcon) {
|
if (weaponIcon) {
|
||||||
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
|
RwRenderStateSet(rwRENDERSTATETEXTUREFILTER, (void*)rwFILTERLINEAR);
|
||||||
#ifndef FIX_BUGS
|
#ifndef FIX_BUGS
|
||||||
|
|
|
@ -228,7 +228,7 @@ CTimeCycle::Initialise(void)
|
||||||
for(h = 0; h < NUMHOURS; h++){
|
for(h = 0; h < NUMHOURS; h++){
|
||||||
li = 0;
|
li = 0;
|
||||||
while(work_buff[bi] == '/' || work_buff[bi] == '\n' ||
|
while(work_buff[bi] == '/' || work_buff[bi] == '\n' ||
|
||||||
work_buff[bi] == '\0' || work_buff[bi] == '\r'){
|
work_buff[bi] == '\0' || work_buff[bi] == ' ' || work_buff[bi] == '\r'){
|
||||||
while(work_buff[bi] != '\n' && work_buff[bi] != '\0' && work_buff[bi] != '\r')
|
while(work_buff[bi] != '\n' && work_buff[bi] != '\0' && work_buff[bi] != '\r')
|
||||||
bi++;
|
bi++;
|
||||||
bi++;
|
bi++;
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "General.h"
|
#include "General.h"
|
||||||
|
|
||||||
|
/*
|
||||||
int CWaterCreatures::nNumActiveSeaLifeForms;
|
int CWaterCreatures::nNumActiveSeaLifeForms;
|
||||||
CWaterCreature CWaterCreatures::aWaterCreatures[NUM_WATER_CREATURES];
|
CWaterCreature CWaterCreatures::aWaterCreatures[NUM_WATER_CREATURES];
|
||||||
|
|
||||||
|
@ -272,3 +273,4 @@ void CWaterCreatures::RemoveAll() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Object.h"
|
#include "Object.h"
|
||||||
|
|
||||||
|
/*
|
||||||
enum eFishSlotState {
|
enum eFishSlotState {
|
||||||
WATER_CREATURE_INIT = 0,
|
WATER_CREATURE_INIT = 0,
|
||||||
WATER_CREATURE_ACTIVE,
|
WATER_CREATURE_ACTIVE,
|
||||||
|
@ -45,4 +46,4 @@ struct WaterCreatureProperties {
|
||||||
float fLevel;
|
float fLevel;
|
||||||
float fUnknown; //unused
|
float fUnknown; //unused
|
||||||
float fWaterDepth;
|
float fWaterDepth;
|
||||||
};
|
};*/
|
|
@ -1175,13 +1175,13 @@ CWaterLevel::RenderWater()
|
||||||
if ( WavesCalculatedThisFrame )
|
if ( WavesCalculatedThisFrame )
|
||||||
{
|
{
|
||||||
RenderSeaBirds();
|
RenderSeaBirds();
|
||||||
RenderShipsOnHorizon();
|
//RenderShipsOnHorizon();
|
||||||
CParticle::HandleShipsAtHorizonStuff();
|
//CParticle::HandleShipsAtHorizonStuff();
|
||||||
HandleBeachToysStuff();
|
//HandleBeachToysStuff();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( _bSeaLife )
|
//if ( _bSeaLife )
|
||||||
HandleSeaLifeForms();
|
// HandleSeaLifeForms();
|
||||||
|
|
||||||
DefinedState();
|
DefinedState();
|
||||||
}
|
}
|
||||||
|
@ -3105,6 +3105,7 @@ CWaterLevel::RenderShipsOnHorizon()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
void
|
void
|
||||||
CWaterLevel::HandleSeaLifeForms()
|
CWaterLevel::HandleSeaLifeForms()
|
||||||
{
|
{
|
||||||
|
@ -3145,7 +3146,7 @@ CWaterLevel::HandleSeaLifeForms()
|
||||||
}
|
}
|
||||||
|
|
||||||
CWaterCreatures::UpdateAll();
|
CWaterCreatures::UpdateAll();
|
||||||
}
|
}*/
|
||||||
|
|
||||||
void
|
void
|
||||||
CWaterLevel::HandleBeachToysStuff(void)
|
CWaterLevel::HandleBeachToysStuff(void)
|
||||||
|
|
|
@ -5615,7 +5615,7 @@ CAutomobile::SetBumperDamage(int32 component, ePanels panel, bool noFlyingCompon
|
||||||
int status = Damage.GetPanelStatus(panel);
|
int status = Damage.GetPanelStatus(panel);
|
||||||
if(m_aCarNodes[component] == nil){
|
if(m_aCarNodes[component] == nil){
|
||||||
printf("Trying to damage component %d of %s\n",
|
printf("Trying to damage component %d of %s\n",
|
||||||
component, CModelInfo::GetModelInfo(GetModelIndex())->GetName());
|
component, CModelInfo::GetModelInfo(GetModelIndex())->GetModelName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(status == PANEL_STATUS_SMASHED1){
|
if(status == PANEL_STATUS_SMASHED1){
|
||||||
|
@ -5635,7 +5635,7 @@ CAutomobile::SetDoorDamage(int32 component, eDoors door, bool noFlyingComponents
|
||||||
int status = Damage.GetDoorStatus(door);
|
int status = Damage.GetDoorStatus(door);
|
||||||
if(m_aCarNodes[component] == nil){
|
if(m_aCarNodes[component] == nil){
|
||||||
printf("Trying to damage component %d of %s\n",
|
printf("Trying to damage component %d of %s\n",
|
||||||
component, CModelInfo::GetModelInfo(GetModelIndex())->GetName());
|
component, CModelInfo::GetModelInfo(GetModelIndex())->GetModelName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -459,11 +459,11 @@ CTrain::InitTrains(void)
|
||||||
CStreaming::LoadAllRequestedModels(false);
|
CStreaming::LoadAllRequestedModels(false);
|
||||||
|
|
||||||
// El-Train wagons
|
// El-Train wagons
|
||||||
float wagonPositions[] = { 0.0f, 20.0f, 40.0f, 0.0f, 20.0f };
|
float wagonPositions[] = { 0.0f, 20.0f, 0.0f, 20.0f };
|
||||||
int8 firstWagon[] = { 1, 0, 0, 1, 0 };
|
int8 firstWagon[] = { 1, 0, 1, 0 };
|
||||||
int8 lastWagon[] = { 0, 0, 1, 0, 1 };
|
int8 lastWagon[] = { 0, 1, 0, 1 };
|
||||||
int16 wagonGroup[] = { 0, 0, 0, 1, 1 };
|
int16 wagonGroup[] = { 0, 0, 1, 1 };
|
||||||
for(i = 0; i < 5; i++){
|
for(i = 0; i < 4; i++){
|
||||||
train = new CTrain(MI_TRAIN, PERMANENT_VEHICLE);
|
train = new CTrain(MI_TRAIN, PERMANENT_VEHICLE);
|
||||||
train->GetMatrix().SetTranslate(0.0f, 0.0f, 0.0f);
|
train->GetMatrix().SetTranslate(0.0f, 0.0f, 0.0f);
|
||||||
train->SetStatus(STATUS_ABANDONED);
|
train->SetStatus(STATUS_ABANDONED);
|
||||||
|
@ -649,52 +649,6 @@ CTrain::ReadAndInterpretTrackFile(Const char *filename, CTrainNode **nodes, int1
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
PlayAnnouncement(uint8 sound, uint8 station)
|
|
||||||
{
|
|
||||||
// this was gone in a PC version but inlined on PS2
|
|
||||||
cAudioScriptObject *obj = new cAudioScriptObject;
|
|
||||||
obj->AudioId = sound;
|
|
||||||
obj->Posn = CTrain::aStationCoors[station];
|
|
||||||
obj->AudioEntity = AEHANDLE_NONE;
|
|
||||||
DMAudio.CreateOneShotScriptObject(obj);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
ProcessTrainAnnouncements(void)
|
|
||||||
{
|
|
||||||
#ifdef GTA_TRAIN
|
|
||||||
for (int i = 0; i < ARRAY_SIZE(StationDist); i++) {
|
|
||||||
for (int j = 0; j < ARRAY_SIZE(EngineTrackPosition); j++) {
|
|
||||||
if (!bTrainArrivalAnnounced[i]) {
|
|
||||||
float preDist = StationDist[i] - 100.0f;
|
|
||||||
if (preDist < 0.0f)
|
|
||||||
preDist += TotalLengthOfTrack;
|
|
||||||
if (EngineTrackPosition[j] > preDist && EngineTrackPosition[j] < StationDist[i]) {
|
|
||||||
bTrainArrivalAnnounced[i] = true;
|
|
||||||
PlayAnnouncement(SCRIPT_SOUND_TRAIN_ANNOUNCEMENT_1, i);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
float postDist = StationDist[i] + 10.0f;
|
|
||||||
#ifdef FIX_BUGS
|
|
||||||
if (postDist > TotalLengthOfTrack)
|
|
||||||
postDist -= TotalLengthOfTrack;
|
|
||||||
#else
|
|
||||||
if (postDist < 0.0f) // does this even make sense here?
|
|
||||||
postDist += TotalLengthOfTrack;
|
|
||||||
#endif
|
|
||||||
if (EngineTrackPosition[j] > StationDist[i] && EngineTrackPosition[j] < postDist) {
|
|
||||||
bTrainArrivalAnnounced[i] = false;
|
|
||||||
PlayAnnouncement(SCRIPT_SOUND_TRAIN_ANNOUNCEMENT_2, i);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
CTrain::UpdateTrains(void)
|
CTrain::UpdateTrains(void)
|
||||||
{
|
{
|
||||||
|
@ -732,8 +686,6 @@ CTrain::UpdateTrains(void)
|
||||||
// time offset for each train
|
// time offset for each train
|
||||||
time += 0x20000/2;
|
time += 0x20000/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessTrainAnnouncements();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update Subway
|
// Update Subway
|
||||||
|
|
Loading…
Reference in a new issue