mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-25 10:43:43 +00:00
GTA_VERSION define and some config.h cleanup
This commit is contained in:
parent
566282057a
commit
d5bc382cb5
25 changed files with 96 additions and 86 deletions
|
@ -65,7 +65,7 @@ uint32 _CurMP3Index;
|
||||||
int32 _CurMP3Pos;
|
int32 _CurMP3Pos;
|
||||||
bool _bIsMp3Active;
|
bool _bIsMp3Active;
|
||||||
|
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(GTA3_STEAM_PATCH) || defined(NO_CDCHECK)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(NO_CDCHECK)
|
||||||
bool _bUseHDDAudio;
|
bool _bUseHDDAudio;
|
||||||
char _aHDDPath[MAX_PATH];
|
char _aHDDPath[MAX_PATH];
|
||||||
#endif
|
#endif
|
||||||
|
@ -1043,7 +1043,7 @@ cSampleManager::Initialise(void)
|
||||||
|
|
||||||
if ( !m_bInitialised )
|
if ( !m_bInitialised )
|
||||||
{
|
{
|
||||||
#if !defined(GTA3_STEAM_PATCH) && !defined(NO_CDCHECK)
|
#if GTA_VERSION < GTA3_PC_STEAM && !defined(NO_CDCHECK)
|
||||||
FrontEndMenuManager.WaitForUserCD();
|
FrontEndMenuManager.WaitForUserCD();
|
||||||
if ( FrontEndMenuManager.m_bQuitGameNoCD )
|
if ( FrontEndMenuManager.m_bQuitGameNoCD )
|
||||||
{
|
{
|
||||||
|
@ -1060,7 +1060,7 @@ cSampleManager::Initialise(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(GTA3_STEAM_PATCH) || defined(NO_CDCHECK)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(NO_CDCHECK)
|
||||||
// hddaudio
|
// hddaudio
|
||||||
/**
|
/**
|
||||||
Option for user to play audio files directly from hard disk.
|
Option for user to play audio files directly from hard disk.
|
||||||
|
@ -1297,17 +1297,17 @@ cSampleManager::Terminate(void)
|
||||||
bool
|
bool
|
||||||
cSampleManager::CheckForAnAudioFileOnCD(void)
|
cSampleManager::CheckForAnAudioFileOnCD(void)
|
||||||
{
|
{
|
||||||
#if !defined(GTA3_STEAM_PATCH) && !defined(NO_CDCHECK)
|
#if GTA_VERSION < GTA3_PC_STEAM && !defined(NO_CDCHECK)
|
||||||
char filepath[MAX_PATH];
|
char filepath[MAX_PATH];
|
||||||
|
|
||||||
#if defined(GTA3_1_1_PATCH)
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
if (_bUseHDDAudio)
|
if (_bUseHDDAudio)
|
||||||
strcpy(filepath, _aHDDPath);
|
strcpy(filepath, _aHDDPath);
|
||||||
else
|
else
|
||||||
strcpy(filepath, m_szCDRomRootPath);
|
strcpy(filepath, m_szCDRomRootPath);
|
||||||
#else
|
#else
|
||||||
strcpy(filepath, m_szCDRomRootPath);
|
strcpy(filepath, m_szCDRomRootPath);
|
||||||
#endif // #if defined(GTA3_1_1_PATCH)
|
#endif // #if GTA_VERSION >= GTA3_PC_11
|
||||||
|
|
||||||
strcat(filepath, StreamedNameTable[AudioManager.GetRandomNumber(1) % TOTAL_STREAMED_SOUNDS]);
|
strcat(filepath, StreamedNameTable[AudioManager.GetRandomNumber(1) % TOTAL_STREAMED_SOUNDS]);
|
||||||
|
|
||||||
|
@ -1324,13 +1324,13 @@ cSampleManager::CheckForAnAudioFileOnCD(void)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
return true;
|
return true;
|
||||||
#endif // #if !defined(GTA3_STEAM_PATCH) && !defined(NO_CDCHECK)
|
#endif // #if GTA_VERSION < GTA3_PC_STEAM && !defined(NO_CDCHECK)
|
||||||
}
|
}
|
||||||
|
|
||||||
char
|
char
|
||||||
cSampleManager::GetCDAudioDriveLetter(void)
|
cSampleManager::GetCDAudioDriveLetter(void)
|
||||||
{
|
{
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(GTA3_STEAM_PATCH) || defined(NO_CDCHECK)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(NO_CDCHECK)
|
||||||
if (_bUseHDDAudio)
|
if (_bUseHDDAudio)
|
||||||
{
|
{
|
||||||
if ( strlen(_aHDDPath) != 0 )
|
if ( strlen(_aHDDPath) != 0 )
|
||||||
|
|
|
@ -1273,7 +1273,7 @@ const tScriptCommandData commands[] = {
|
||||||
REGISTER_COMMAND(COMMAND_IS_CHAR_LYING_DOWN, INPUT_ARGUMENTS(ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_IS_CHAR_LYING_DOWN, INPUT_ARGUMENTS(ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_CAN_CHAR_SEE_DEAD_CHAR, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_CAN_CHAR_SEE_DEAD_CHAR, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT,), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_SET_ENTER_CAR_RANGE_MULTIPLIER, INPUT_ARGUMENTS(ARGTYPE_FLOAT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_ENTER_CAR_RANGE_MULTIPLIER, INPUT_ARGUMENTS(ARGTYPE_FLOAT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
REGISTER_COMMAND(COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER, INPUT_ARGUMENTS(ARGTYPE_FLOAT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER, INPUT_ARGUMENTS(ARGTYPE_FLOAT,), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1326,7 +1326,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
case COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER:
|
case COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER:
|
||||||
CollectParameters(&m_nIp, 1);
|
CollectParameters(&m_nIp, 1);
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
|
|
|
@ -1156,7 +1156,7 @@ enum {
|
||||||
COMMAND_IS_CHAR_LYING_DOWN,
|
COMMAND_IS_CHAR_LYING_DOWN,
|
||||||
COMMAND_CAN_CHAR_SEE_DEAD_CHAR,
|
COMMAND_CAN_CHAR_SEE_DEAD_CHAR,
|
||||||
COMMAND_SET_ENTER_CAR_RANGE_MULTIPLIER,
|
COMMAND_SET_ENTER_CAR_RANGE_MULTIPLIER,
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER,
|
COMMAND_SET_THREAT_REACTION_RANGE_MULTIPLIER,
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
|
#ifdef USE_ADVANCED_SCRIPT_DEBUG_OUTPUT
|
||||||
|
|
|
@ -2570,7 +2570,7 @@ CCam::Process_M16_1stPerson(const CVector &CameraTarget, float, float, float)
|
||||||
ResetStatics = false;
|
ResetStatics = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
((CPed*)CamTargetEntity)->m_pedIK.GetComponentPosition(&HeadPos, PED_HEAD);
|
((CPed*)CamTargetEntity)->m_pedIK.GetComponentPosition(&HeadPos, PED_HEAD);
|
||||||
Source = HeadPos;
|
Source = HeadPos;
|
||||||
Source.z += 0.1f;
|
Source.z += 0.1f;
|
||||||
|
@ -2605,7 +2605,7 @@ CCam::Process_M16_1stPerson(const CVector &CameraTarget, float, float, float)
|
||||||
if(Alpha > DEGTORAD(60.0f)) Alpha = DEGTORAD(60.0f);
|
if(Alpha > DEGTORAD(60.0f)) Alpha = DEGTORAD(60.0f);
|
||||||
else if(Alpha < -DEGTORAD(89.5f)) Alpha = -DEGTORAD(89.5f);
|
else if(Alpha < -DEGTORAD(89.5f)) Alpha = -DEGTORAD(89.5f);
|
||||||
|
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
HeadPos.x = 0.0f;
|
HeadPos.x = 0.0f;
|
||||||
HeadPos.y = 0.0f;
|
HeadPos.y = 0.0f;
|
||||||
HeadPos.z = 0.0f;
|
HeadPos.z = 0.0f;
|
||||||
|
|
|
@ -74,7 +74,7 @@ bool bDidWeProcessAnyCinemaCam;
|
||||||
|
|
||||||
CCamera::CCamera(void)
|
CCamera::CCamera(void)
|
||||||
{
|
{
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(FIX_BUGS)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(FIX_BUGS)
|
||||||
m_fMouseAccelHorzntl = 0.0025f;
|
m_fMouseAccelHorzntl = 0.0025f;
|
||||||
m_fMouseAccelVertical = 0.003f;
|
m_fMouseAccelVertical = 0.003f;
|
||||||
#endif
|
#endif
|
||||||
|
@ -88,7 +88,7 @@ CCamera::CCamera(float)
|
||||||
void
|
void
|
||||||
CCamera::Init(void)
|
CCamera::Init(void)
|
||||||
{
|
{
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(FIX_BUGS)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(FIX_BUGS)
|
||||||
float fMouseAccelHorzntl = m_fMouseAccelHorzntl;
|
float fMouseAccelHorzntl = m_fMouseAccelHorzntl;
|
||||||
float fMouseAccelVertical = m_fMouseAccelVertical;
|
float fMouseAccelVertical = m_fMouseAccelVertical;
|
||||||
#endif
|
#endif
|
||||||
|
@ -104,7 +104,7 @@ CCamera::Init(void)
|
||||||
memset(this, 0, sizeof(CCamera)); // getting rid of vtable, eh?
|
memset(this, 0, sizeof(CCamera)); // getting rid of vtable, eh?
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(GTA3_1_1_PATCH) || defined(FIX_BUGS)
|
#if GTA_VERSION >= GTA3_PC_11 || defined(FIX_BUGS)
|
||||||
m_fMouseAccelHorzntl = fMouseAccelHorzntl;
|
m_fMouseAccelHorzntl = fMouseAccelHorzntl;
|
||||||
m_fMouseAccelVertical = fMouseAccelVertical;
|
m_fMouseAccelVertical = fMouseAccelVertical;
|
||||||
#endif
|
#endif
|
||||||
|
@ -237,7 +237,7 @@ CCamera::Init(void)
|
||||||
m_uiTransitionState = 0;
|
m_uiTransitionState = 0;
|
||||||
m_uiTimeTransitionStart = 0;
|
m_uiTimeTransitionStart = 0;
|
||||||
m_bLookingAtPlayer = true;
|
m_bLookingAtPlayer = true;
|
||||||
#if !defined(GTA3_1_1_PATCH) && !defined(FIX_BUGS)
|
#if GTA_VERSION < GTA3_PC_11 && !defined(FIX_BUGS)
|
||||||
m_fMouseAccelHorzntl = 0.0025f;
|
m_fMouseAccelHorzntl = 0.0025f;
|
||||||
m_fMouseAccelVertical = 0.003f;
|
m_fMouseAccelVertical = 0.003f;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1009,7 +1009,7 @@ CMenuManager::Draw()
|
||||||
CFont::SetCentreOff();
|
CFont::SetCentreOff();
|
||||||
CFont::SetJustifyOn();
|
CFont::SetJustifyOn();
|
||||||
CFont::SetBackGroundOnlyTextOn();
|
CFont::SetBackGroundOnlyTextOn();
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
#ifdef DRAW_MENU_VERSION_TEXT
|
#ifdef DRAW_MENU_VERSION_TEXT
|
||||||
CFont::SetColor(CRGBA(235, 170, 50, FadeIn(255)));
|
CFont::SetColor(CRGBA(235, 170, 50, FadeIn(255)));
|
||||||
CFont::SetRightJustifyOn();
|
CFont::SetRightJustifyOn();
|
||||||
|
@ -3538,7 +3538,7 @@ CMenuManager::LoadAllTextures()
|
||||||
CTxdStore::LoadTxd(frontendTxdSlot, "MODELS/FRONTEND.TXD");
|
CTxdStore::LoadTxd(frontendTxdSlot, "MODELS/FRONTEND.TXD");
|
||||||
CTxdStore::AddRef(frontendTxdSlot);
|
CTxdStore::AddRef(frontendTxdSlot);
|
||||||
CTxdStore::SetCurrentTxd(frontendTxdSlot);
|
CTxdStore::SetCurrentTxd(frontendTxdSlot);
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
CStreaming::IHaveUsedStreamingMemory();
|
CStreaming::IHaveUsedStreamingMemory();
|
||||||
CTimer::Update();
|
CTimer::Update();
|
||||||
#endif
|
#endif
|
||||||
|
@ -3568,7 +3568,7 @@ CMenuManager::LoadAllTextures()
|
||||||
m_aMapSprites[i].SetAddressing(rwTEXTUREADDRESSBORDER);
|
m_aMapSprites[i].SetAddressing(rwTEXTUREADDRESSBORDER);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
CStreaming::IHaveUsedStreamingMemory();
|
CStreaming::IHaveUsedStreamingMemory();
|
||||||
CTimer::Update();
|
CTimer::Update();
|
||||||
#endif
|
#endif
|
||||||
|
@ -3583,7 +3583,7 @@ CMenuManager::LoadSettings()
|
||||||
int fileHandle = CFileMgr::OpenFile("gta3.set", "r");
|
int fileHandle = CFileMgr::OpenFile("gta3.set", "r");
|
||||||
|
|
||||||
int32 prevLang = m_PrefsLanguage;
|
int32 prevLang = m_PrefsLanguage;
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
CMBlur::BlurOn = (_dwOperatingSystemVersion != OS_WIN98);
|
CMBlur::BlurOn = (_dwOperatingSystemVersion != OS_WIN98);
|
||||||
#else
|
#else
|
||||||
CMBlur::BlurOn = true;
|
CMBlur::BlurOn = true;
|
||||||
|
@ -3882,7 +3882,7 @@ void
|
||||||
CMenuManager::PrintStats()
|
CMenuManager::PrintStats()
|
||||||
{
|
{
|
||||||
int rowNum = ConstructStatLine(99999);
|
int rowNum = ConstructStatLine(99999);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
CFont::SetFontStyle(FONT_LOCALE(FONT_BANK));
|
CFont::SetFontStyle(FONT_LOCALE(FONT_BANK));
|
||||||
#endif
|
#endif
|
||||||
CFont::SetScale(MENU_X(MENU_TEXT_SIZE_X * 0.7), MENU_Y(MENU_TEXT_SIZE_Y * 0.9)); // second mulipliers are double, idk why
|
CFont::SetScale(MENU_X(MENU_TEXT_SIZE_X * 0.7), MENU_Y(MENU_TEXT_SIZE_Y * 0.9)); // second mulipliers are double, idk why
|
||||||
|
@ -4936,7 +4936,7 @@ CMenuManager::ProcessButtonPresses(void)
|
||||||
m_PrefsUseWideScreen = false;
|
m_PrefsUseWideScreen = false;
|
||||||
m_PrefsShowSubtitles = true;
|
m_PrefsShowSubtitles = true;
|
||||||
m_nDisplayVideoMode = m_nPrefsVideoMode;
|
m_nDisplayVideoMode = m_nPrefsVideoMode;
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
if (_dwOperatingSystemVersion == OS_WIN98) {
|
if (_dwOperatingSystemVersion == OS_WIN98) {
|
||||||
CMBlur::BlurOn = false;
|
CMBlur::BlurOn = false;
|
||||||
CMBlur::MotionBlurClose();
|
CMBlur::MotionBlurClose();
|
||||||
|
@ -5588,7 +5588,7 @@ CMenuManager::WaitForUserCD()
|
||||||
CSprite2d *splash;
|
CSprite2d *splash;
|
||||||
char *splashscreen = nil;
|
char *splashscreen = nil;
|
||||||
|
|
||||||
#if (!(defined RANDOMSPLASH) && !(defined GTA3_1_1_PATCH))
|
#if (!(defined RANDOMSPLASH) && GTA_VERSION < GTA3_PC_11)
|
||||||
if (CGame::frenchGame || CGame::germanGame || !CGame::nastyGame)
|
if (CGame::frenchGame || CGame::germanGame || !CGame::nastyGame)
|
||||||
splashscreen = "mainsc2";
|
splashscreen = "mainsc2";
|
||||||
else
|
else
|
||||||
|
|
|
@ -115,7 +115,7 @@ void RestoreDefGraphics(int8 action) {
|
||||||
CMenuManager::m_PrefsVsync = true;
|
CMenuManager::m_PrefsVsync = true;
|
||||||
CMenuManager::m_PrefsUseWideScreen = false;
|
CMenuManager::m_PrefsUseWideScreen = false;
|
||||||
FrontEndMenuManager.m_nDisplayVideoMode = FrontEndMenuManager.m_nPrefsVideoMode;
|
FrontEndMenuManager.m_nDisplayVideoMode = FrontEndMenuManager.m_nPrefsVideoMode;
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
if (_dwOperatingSystemVersion == OS_WIN98) {
|
if (_dwOperatingSystemVersion == OS_WIN98) {
|
||||||
CMBlur::BlurOn = false;
|
CMBlur::BlurOn = false;
|
||||||
CMBlur::MotionBlurClose();
|
CMBlur::MotionBlurClose();
|
||||||
|
|
|
@ -937,7 +937,7 @@ void CPad::AddToPCCheatString(char c)
|
||||||
if ( !_CHEATCMP("GNIROOOOOB") )
|
if ( !_CHEATCMP("GNIROOOOOB") )
|
||||||
SlowTimeCheat();
|
SlowTimeCheat();
|
||||||
|
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
// "TURTOISE"
|
// "TURTOISE"
|
||||||
if ( !_CHEATCMP("ESIOTRUT") )
|
if ( !_CHEATCMP("ESIOTRUT") )
|
||||||
ArmourCheat();
|
ArmourCheat();
|
||||||
|
|
|
@ -135,10 +135,6 @@ enum Config {
|
||||||
NUM_EXPLOSIONS = 48,
|
NUM_EXPLOSIONS = 48,
|
||||||
};
|
};
|
||||||
|
|
||||||
// We'll use this once we're ready to become independent of the game
|
|
||||||
// Use it to mark bugs in the code that will prevent the game from working then
|
|
||||||
//#define STANDALONE
|
|
||||||
|
|
||||||
// We don't expect to compile for PS2 or Xbox
|
// We don't expect to compile for PS2 or Xbox
|
||||||
// but it might be interesting for documentation purposes
|
// but it might be interesting for documentation purposes
|
||||||
#define GTA_PC
|
#define GTA_PC
|
||||||
|
@ -165,6 +161,16 @@ enum Config {
|
||||||
#define FINAL
|
#define FINAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Version defines
|
||||||
|
#define GTA3_PS2_140 300
|
||||||
|
#define GTA3_PS2_160 301
|
||||||
|
#define GTA3_PC_10 310
|
||||||
|
#define GTA3_PC_11 311
|
||||||
|
#define GTA3_PC_STEAM 312
|
||||||
|
// TODO? maybe something for xbox or android?
|
||||||
|
|
||||||
|
#define GTA_VERSION GTA3_PC_11
|
||||||
|
|
||||||
// quality of life fixes that should also be in FINAL
|
// quality of life fixes that should also be in FINAL
|
||||||
#define NASTY_GAME // nasty game for all languages
|
#define NASTY_GAME // nasty game for all languages
|
||||||
#define NO_CDCHECK
|
#define NO_CDCHECK
|
||||||
|
@ -173,14 +179,18 @@ enum Config {
|
||||||
#define DRAW_GAME_VERSION_TEXT
|
#define DRAW_GAME_VERSION_TEXT
|
||||||
#define DRAW_MENU_VERSION_TEXT
|
#define DRAW_MENU_VERSION_TEXT
|
||||||
|
|
||||||
|
// Memory allocation and compression
|
||||||
|
// #define USE_CUSTOM_ALLOCATOR // use CMemoryHeap for allocation. use with care, not finished yet
|
||||||
|
//#define COMPRESSED_COL_VECTORS // use compressed vectors for collision vertices
|
||||||
|
//#define ANIM_COMPRESSION // only keep most recently used anims uncompressed
|
||||||
|
|
||||||
#if defined GTA_PS2
|
#if defined GTA_PS2
|
||||||
# define GTA_PS2_STUFF
|
# define GTA_PS2_STUFF
|
||||||
# define RANDOMSPLASH
|
# define RANDOMSPLASH
|
||||||
|
# define USE_CUSTOM_ALLOCATOR
|
||||||
# define VU_COLLISION
|
# define VU_COLLISION
|
||||||
# define ANIM_COMPRESSION
|
# define ANIM_COMPRESSION
|
||||||
#elif defined GTA_PC
|
#elif defined GTA_PC
|
||||||
# define GTA3_1_1_PATCH
|
|
||||||
//# define GTA3_STEAM_PATCH
|
|
||||||
# ifdef GTA_PS2_STUFF
|
# ifdef GTA_PS2_STUFF
|
||||||
# define USE_PS2_RAND
|
# define USE_PS2_RAND
|
||||||
# define RANDOMSPLASH // use random splash as on PS2
|
# define RANDOMSPLASH // use random splash as on PS2
|
||||||
|
@ -190,7 +200,7 @@ enum Config {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef VU_COLLISION
|
#ifdef VU_COLLISION
|
||||||
#define COMPRESSED_COL_VECTORS // current need compressed vectors in this code
|
#define COMPRESSED_COL_VECTORS // currently need compressed vectors in this code
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MASTER
|
#ifdef MASTER
|
||||||
|
@ -242,7 +252,7 @@ enum Config {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef EXTENDED_COLOURFILTER
|
#ifndef EXTENDED_COLOURFILTER
|
||||||
#undef SCREEN_DROPLETS // we need the frontbuffer for this effect
|
#undef SCREEN_DROPLETS // we need the backbuffer for this effect
|
||||||
#endif
|
#endif
|
||||||
#ifndef EXTENDED_PIPELINES
|
#ifndef EXTENDED_PIPELINES
|
||||||
#undef SCREEN_DROPLETS // we need neo.txd
|
#undef SCREEN_DROPLETS // we need neo.txd
|
||||||
|
|
|
@ -824,7 +824,7 @@ CPhysical::ApplyCollisionAlt(CEntity *B, CColPoint &colpoint, float &impulse, CV
|
||||||
normalSpeed = DotProduct(speed, colpoint.normal);
|
normalSpeed = DotProduct(speed, colpoint.normal);
|
||||||
if(normalSpeed < 0.0f){
|
if(normalSpeed < 0.0f){
|
||||||
float minspeed = 1.3f*GRAVITY * CTimer::GetTimeStep();
|
float minspeed = 1.3f*GRAVITY * CTimer::GetTimeStep();
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
if ((IsObject() || IsVehicle() && (GetUp().z < -0.3f || ((CVehicle*)this)->IsBike() && (GetStatus() == STATUS_ABANDONED || GetStatus() == STATUS_WRECKED))) &&
|
if ((IsObject() || IsVehicle() && (GetUp().z < -0.3f || ((CVehicle*)this)->IsBike() && (GetStatus() == STATUS_ABANDONED || GetStatus() == STATUS_WRECKED))) &&
|
||||||
#else
|
#else
|
||||||
if((IsObject() || IsVehicle() && GetUp().z < -0.3f) &&
|
if((IsObject() || IsVehicle() && GetUp().z < -0.3f) &&
|
||||||
|
|
|
@ -962,7 +962,7 @@ CVehicleModelInfo::DeleteVehicleColourTextures(void)
|
||||||
for(i = 0; i < 256; i++){
|
for(i = 0; i < 256; i++){
|
||||||
if(ms_colourTextureTable[i]){
|
if(ms_colourTextureTable[i]){
|
||||||
RwTextureDestroy(ms_colourTextureTable[i]);
|
RwTextureDestroy(ms_colourTextureTable[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
ms_colourTextureTable[i] = nil;
|
ms_colourTextureTable[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -667,7 +667,7 @@ CCopPed::ProcessControl(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bDuckAndCover) {
|
if (bDuckAndCover) {
|
||||||
#if !defined(GTA3_1_1_PATCH) && !defined(VC_PED_PORTS)
|
#if GTA_VERSION < GTA3_PC_11 && !defined(VC_PED_PORTS)
|
||||||
if (!bNotAllowedToDuck && Seek()) {
|
if (!bNotAllowedToDuck && Seek()) {
|
||||||
SetMoveState(PEDMOVE_STILL);
|
SetMoveState(PEDMOVE_STILL);
|
||||||
SetMoveAnim();
|
SetMoveAnim();
|
||||||
|
|
|
@ -78,12 +78,12 @@ public:
|
||||||
if(type == EFFECT_LIGHT){
|
if(type == EFFECT_LIGHT){
|
||||||
if(light.corona)
|
if(light.corona)
|
||||||
RwTextureDestroy(light.corona);
|
RwTextureDestroy(light.corona);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
light.corona = nil;
|
light.corona = nil;
|
||||||
#endif
|
#endif
|
||||||
if(light.shadow)
|
if(light.shadow)
|
||||||
RwTextureDestroy(light.shadow);
|
RwTextureDestroy(light.shadow);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
light.shadow = nil;
|
light.shadow = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,23 +44,23 @@ void
|
||||||
CClouds::Shutdown(void)
|
CClouds::Shutdown(void)
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpCloudTex[0]);
|
RwTextureDestroy(gpCloudTex[0]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex[0] = nil;
|
gpCloudTex[0] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpCloudTex[1]);
|
RwTextureDestroy(gpCloudTex[1]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex[1] = nil;
|
gpCloudTex[1] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpCloudTex[2]);
|
RwTextureDestroy(gpCloudTex[2]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex[2] = nil;
|
gpCloudTex[2] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpCloudTex[3]);
|
RwTextureDestroy(gpCloudTex[3]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex[3] = nil;
|
gpCloudTex[3] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpCloudTex[4]);
|
RwTextureDestroy(gpCloudTex[4]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex[4] = nil;
|
gpCloudTex[4] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -590,7 +590,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_SMOKE_FILES; i++ )
|
for ( int32 i = 0; i < MAX_SMOKE_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpSmokeTex[i]);
|
RwTextureDestroy(gpSmokeTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpSmokeTex[i] = nil;
|
gpSmokeTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -598,7 +598,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_SMOKE2_FILES; i++ )
|
for ( int32 i = 0; i < MAX_SMOKE2_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpSmoke2Tex[i]);
|
RwTextureDestroy(gpSmoke2Tex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpSmoke2Tex[i] = nil;
|
gpSmoke2Tex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -606,7 +606,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_RUBBER_FILES; i++ )
|
for ( int32 i = 0; i < MAX_RUBBER_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpRubberTex[i]);
|
RwTextureDestroy(gpRubberTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRubberTex[i] = nil;
|
gpRubberTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -614,7 +614,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_RAINSPLASH_FILES; i++ )
|
for ( int32 i = 0; i < MAX_RAINSPLASH_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpRainSplashTex[i]);
|
RwTextureDestroy(gpRainSplashTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRainSplashTex[i] = nil;
|
gpRainSplashTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -622,7 +622,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_WATERSPRAY_FILES; i++ )
|
for ( int32 i = 0; i < MAX_WATERSPRAY_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpWatersprayTex[i]);
|
RwTextureDestroy(gpWatersprayTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpWatersprayTex[i] = nil;
|
gpWatersprayTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -630,7 +630,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_EXPLOSIONMEDIUM_FILES; i++ )
|
for ( int32 i = 0; i < MAX_EXPLOSIONMEDIUM_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpExplosionMediumTex[i]);
|
RwTextureDestroy(gpExplosionMediumTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpExplosionMediumTex[i] = nil;
|
gpExplosionMediumTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -638,7 +638,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_GUNFLASH_FILES; i++ )
|
for ( int32 i = 0; i < MAX_GUNFLASH_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpGunFlashTex[i]);
|
RwTextureDestroy(gpGunFlashTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpGunFlashTex[i] = nil;
|
gpGunFlashTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -646,7 +646,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_RAINDROP_FILES; i++ )
|
for ( int32 i = 0; i < MAX_RAINDROP_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpRainDropTex[i]);
|
RwTextureDestroy(gpRainDropTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRainDropTex[i] = nil;
|
gpRainDropTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -654,7 +654,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_RAINSPLASHUP_FILES; i++ )
|
for ( int32 i = 0; i < MAX_RAINSPLASHUP_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpRainSplashupTex[i]);
|
RwTextureDestroy(gpRainSplashupTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRainSplashupTex[i] = nil;
|
gpRainSplashupTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -662,7 +662,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_BIRDFRONT_FILES; i++ )
|
for ( int32 i = 0; i < MAX_BIRDFRONT_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpBirdfrontTex[i]);
|
RwTextureDestroy(gpBirdfrontTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpBirdfrontTex[i] = nil;
|
gpBirdfrontTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -670,7 +670,7 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_CARDEBRIS_FILES; i++ )
|
for ( int32 i = 0; i < MAX_CARDEBRIS_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpCarDebrisTex[i]);
|
RwTextureDestroy(gpCarDebrisTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCarDebrisTex[i] = nil;
|
gpCarDebrisTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -678,78 +678,78 @@ void CParticle::Shutdown()
|
||||||
for ( int32 i = 0; i < MAX_CARSPLASH_FILES; i++ )
|
for ( int32 i = 0; i < MAX_CARSPLASH_FILES; i++ )
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpCarSplashTex[i]);
|
RwTextureDestroy(gpCarSplashTex[i]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCarSplashTex[i] = nil;
|
gpCarSplashTex[i] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
RwTextureDestroy(gpFlame1Tex);
|
RwTextureDestroy(gpFlame1Tex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpFlame1Tex = nil;
|
gpFlame1Tex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpFlame5Tex);
|
RwTextureDestroy(gpFlame5Tex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpFlame5Tex = nil;
|
gpFlame5Tex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpRainDropSmallTex);
|
RwTextureDestroy(gpRainDropSmallTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRainDropSmallTex = nil;
|
gpRainDropSmallTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpBloodTex);
|
RwTextureDestroy(gpBloodTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpBloodTex = nil;
|
gpBloodTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpLeafTex);
|
RwTextureDestroy(gpLeafTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpLeafTex = nil;
|
gpLeafTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpCloudTex1);
|
RwTextureDestroy(gpCloudTex1);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex1 = nil;
|
gpCloudTex1 = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpCloudTex4);
|
RwTextureDestroy(gpCloudTex4);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCloudTex4 = nil;
|
gpCloudTex4 = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpBloodSmallTex);
|
RwTextureDestroy(gpBloodSmallTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpBloodSmallTex = nil;
|
gpBloodSmallTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpGungeTex);
|
RwTextureDestroy(gpGungeTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpGungeTex = nil;
|
gpGungeTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpCollisionSmokeTex);
|
RwTextureDestroy(gpCollisionSmokeTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCollisionSmokeTex = nil;
|
gpCollisionSmokeTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpBulletHitTex);
|
RwTextureDestroy(gpBulletHitTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpBulletHitTex = nil;
|
gpBulletHitTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpGunShellTex);
|
RwTextureDestroy(gpGunShellTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpGunShellTex = nil;
|
gpGunShellTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpWakeOldTex);
|
RwTextureDestroy(gpWakeOldTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpWakeOldTex = nil;
|
gpWakeOldTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RwTextureDestroy(gpPointlightTex);
|
RwTextureDestroy(gpPointlightTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpPointlightTex = nil;
|
gpPointlightTex = nil;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -414,19 +414,19 @@ void
|
||||||
CRubbish::Shutdown(void)
|
CRubbish::Shutdown(void)
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpRubbishTexture[0]);
|
RwTextureDestroy(gpRubbishTexture[0]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRubbishTexture[0] = nil;
|
gpRubbishTexture[0] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpRubbishTexture[1]);
|
RwTextureDestroy(gpRubbishTexture[1]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRubbishTexture[1] = nil;
|
gpRubbishTexture[1] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpRubbishTexture[2]);
|
RwTextureDestroy(gpRubbishTexture[2]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRubbishTexture[2] = nil;
|
gpRubbishTexture[2] = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpRubbishTexture[3]);
|
RwTextureDestroy(gpRubbishTexture[3]);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpRubbishTexture[3] = nil;
|
gpRubbishTexture[3] = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,15 +54,15 @@ void
|
||||||
CSkidmarks::Shutdown(void)
|
CSkidmarks::Shutdown(void)
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpSkidTex);
|
RwTextureDestroy(gpSkidTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpSkidTex = nil;
|
gpSkidTex = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpSkidBloodTex);
|
RwTextureDestroy(gpSkidBloodTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpSkidBloodTex = nil;
|
gpSkidBloodTex = nil;
|
||||||
#endif
|
#endif
|
||||||
RwTextureDestroy(gpSkidMudTex);
|
RwTextureDestroy(gpSkidMudTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpSkidMudTex = nil;
|
gpSkidMudTex = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -389,7 +389,7 @@ psInitialize(void)
|
||||||
|
|
||||||
InitialiseLanguage();
|
InitialiseLanguage();
|
||||||
|
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION < GTA3_PC_11
|
||||||
FrontEndMenuManager.LoadSettings();
|
FrontEndMenuManager.LoadSettings();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ psInitialize(void)
|
||||||
|
|
||||||
#ifndef PS2_MENU
|
#ifndef PS2_MENU
|
||||||
|
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
FrontEndMenuManager.LoadSettings();
|
FrontEndMenuManager.LoadSettings();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -651,7 +651,7 @@ psInitialize(void)
|
||||||
C_PcSave::SetSaveDirectory(_psGetUserFilesFolder());
|
C_PcSave::SetSaveDirectory(_psGetUserFilesFolder());
|
||||||
|
|
||||||
InitialiseLanguage();
|
InitialiseLanguage();
|
||||||
#ifndef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
FrontEndMenuManager.LoadSettings();
|
FrontEndMenuManager.LoadSettings();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -703,7 +703,7 @@ psInitialize(void)
|
||||||
|
|
||||||
#ifndef PS2_MENU
|
#ifndef PS2_MENU
|
||||||
|
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
FrontEndMenuManager.LoadSettings();
|
FrontEndMenuManager.LoadSettings();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -405,7 +405,7 @@ CVehicle::FlyingControl(eFlightModel flightModel)
|
||||||
else
|
else
|
||||||
fThrust = fThrustVar * (CPad::GetPad(0)->GetAccelerate() - 2 * CPad::GetPad(0)->GetBrake()) / 255.0f + 0.95f;
|
fThrust = fThrustVar * (CPad::GetPad(0)->GetAccelerate() - 2 * CPad::GetPad(0)->GetBrake()) / 255.0f + 0.95f;
|
||||||
fThrust -= fRotorFallOff * DotProduct(m_vecMoveSpeed, GetUp());
|
fThrust -= fRotorFallOff * DotProduct(m_vecMoveSpeed, GetUp());
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
if (fThrust > 0.9f && GetPosition().z > 80.0f)
|
if (fThrust > 0.9f && GetPosition().z > 80.0f)
|
||||||
fThrust = 0.9f;
|
fThrust = 0.9f;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -46,7 +46,7 @@ void
|
||||||
CWeaponEffects::Shutdown(void)
|
CWeaponEffects::Shutdown(void)
|
||||||
{
|
{
|
||||||
RwTextureDestroy(gpCrossHairTex);
|
RwTextureDestroy(gpCrossHairTex);
|
||||||
#ifdef GTA3_1_1_PATCH
|
#if GTA_VERSION >= GTA3_PC_11
|
||||||
gpCrossHairTex = nil;
|
gpCrossHairTex = nil;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
2
vendor/ogg
vendored
2
vendor/ogg
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 31bd3f2707fb7dbae539a7093ba1fc4b2b37d84e
|
Subproject commit 684c73773e7e2683245ffd6aa75f04115b51123a
|
2
vendor/opus
vendored
2
vendor/opus
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 841d57b82a516ccc6e90d1d4aee8d4a7f0d00010
|
Subproject commit 6bae366f9fef25191fc812c430e8abd40a13a233
|
2
vendor/opusfile
vendored
2
vendor/opusfile
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 4174c26e0aaab19d01afdea0a46f7f95fdc6b3e6
|
Subproject commit 6452e838e68e8f4fc0b3599523c760ac6276ce89
|
Loading…
Reference in a new issue