mirror of
https://github.com/GTAmodding/re3.git
synced 2021-02-19 17:49:54 +01:00
Remove console and fix sth
This commit is contained in:
parent
addb701638
commit
1cea84d2b1
@ -4359,7 +4359,7 @@ CPed::RestorePreviousState(void)
|
||||
case PED_WANDER_PATH:
|
||||
m_nPedState = PED_WANDER_PATH;
|
||||
bIsRunning = false;
|
||||
if (!bFindNewNodeAfterStateRestore) {
|
||||
if (bFindNewNodeAfterStateRestore) {
|
||||
if (m_pNextPathNode) {
|
||||
CVector diff = m_pNextPathNode->GetPosition() - GetPosition();
|
||||
if (diff.MagnitudeSqr() < sq(7.0f)) {
|
||||
|
@ -1367,11 +1367,14 @@ WinMain(HINSTANCE instance,
|
||||
RwChar** argv;
|
||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||
|
||||
#if 0
|
||||
// TODO: make this an option somewhere
|
||||
AllocConsole();
|
||||
freopen("CONIN$", "r", stdin);
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
#endif
|
||||
|
||||
#else
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
@ -1929,12 +1929,13 @@ WinMain(HINSTANCE instance,
|
||||
StaticPatcher::Apply();
|
||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||
|
||||
|
||||
#if 0
|
||||
// TODO: make this an option somewhere
|
||||
AllocConsole();
|
||||
freopen("CONIN$", "r", stdin);
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Initialize the platform independent data.
|
||||
|
Loading…
Reference in New Issue
Block a user