Add gModernMap guard

This commit is contained in:
nukeykt 2019-10-27 21:30:14 +09:00 committed by Christoph Oelckers
parent bfea07570a
commit 5a087b1768

View file

@ -1928,7 +1928,7 @@ void WeaponProcess(PLAYER *pPlayer) {
pPlayer->flashEffect = ClipLow(pPlayer->flashEffect - 1, 0);
if (gQavScene[pPlayer->nPlayer].index >= 0) {
if (gModernMap && gQavScene[pPlayer->nPlayer].index >= 0) {
int nIndex = gQavScene[pPlayer->nPlayer].index;
if (sprite[nIndex].extra >= 0 && pPlayer->pXSprite->health > 0) {