Enable MSVC optimisation again (with work-around for internal compiler error in burn_gun.cpp)

This commit is contained in:
Barry Harris 2017-07-09 18:49:49 +00:00
parent ad6a9f3295
commit 2c3f2cacfe
2 changed files with 3 additions and 3 deletions

View File

@ -257,7 +257,7 @@ else
endif
else
CFLAGS = /nologo /w /Oi /Ot /Oy /Ob2 /GF /Gs /Gy /GL /Zc:forScope /MT /EHsc
CFLAGS = /nologo /w /O2 /Ox /Oi /Ot /Oy /Ob2 /GF /Gs /Gy /GL /Zc:forScope /MT /EHsc
LDFLAGS += /LTCG:STATUS
endif

View File

@ -127,8 +127,8 @@ void BurnGunInit(INT32 nNumPlayers, bool bDrawTargets)
}
for (INT32 i = 0; i < MAX_GUNS; i++) {
BurnGunX[i] = ((nBurnGunMaxX / 2) - 7) << 8;
BurnGunY[i] = ((nBurnGunMaxY / 2) - 8) << 8;
BurnGunX[i] = ((nBurnGunMaxX >> 1) - 7) << 8;
BurnGunY[i] = ((nBurnGunMaxY >> 1) - 8) << 8;
}
}