mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 09:00:01 +00: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:
|
case PED_WANDER_PATH:
|
||||||
m_nPedState = PED_WANDER_PATH;
|
m_nPedState = PED_WANDER_PATH;
|
||||||
bIsRunning = false;
|
bIsRunning = false;
|
||||||
if (!bFindNewNodeAfterStateRestore) {
|
if (bFindNewNodeAfterStateRestore) {
|
||||||
if (m_pNextPathNode) {
|
if (m_pNextPathNode) {
|
||||||
CVector diff = m_pNextPathNode->GetPosition() - GetPosition();
|
CVector diff = m_pNextPathNode->GetPosition() - GetPosition();
|
||||||
if (diff.MagnitudeSqr() < sq(7.0f)) {
|
if (diff.MagnitudeSqr() < sq(7.0f)) {
|
||||||
|
|
|
@ -1367,11 +1367,14 @@ WinMain(HINSTANCE instance,
|
||||||
RwChar** argv;
|
RwChar** argv;
|
||||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||||
|
|
||||||
|
#if 0
|
||||||
// TODO: make this an option somewhere
|
// TODO: make this an option somewhere
|
||||||
AllocConsole();
|
AllocConsole();
|
||||||
freopen("CONIN$", "r", stdin);
|
freopen("CONIN$", "r", stdin);
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONOUT$", "w", stdout);
|
||||||
freopen("CONOUT$", "w", stderr);
|
freopen("CONOUT$", "w", stderr);
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
|
|
@ -1929,12 +1929,13 @@ WinMain(HINSTANCE instance,
|
||||||
StaticPatcher::Apply();
|
StaticPatcher::Apply();
|
||||||
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, nil, SPIF_SENDCHANGE);
|
||||||
|
|
||||||
|
#if 0
|
||||||
// TODO: make this an option somewhere
|
// TODO: make this an option somewhere
|
||||||
AllocConsole();
|
AllocConsole();
|
||||||
freopen("CONIN$", "r", stdin);
|
freopen("CONIN$", "r", stdin);
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONOUT$", "w", stdout);
|
||||||
freopen("CONOUT$", "w", stderr);
|
freopen("CONOUT$", "w", stderr);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the platform independent data.
|
* Initialize the platform independent data.
|
||||||
|
|
Loading…
Reference in a new issue