port: fix drug blur not resetting on respawn

fix taken from Graslu's decomp fork
This commit is contained in:
fgsfds committed 2023-10-24 11:14:33 +02:00
1 parent 77fcac4912
commit 30b8400d86
2 files changed
+8

No files matched your search

+4
View File
@@ -88,6 +88,10 @@ void botReset(struct chrdata *chr, u8 respawning)
chrSetShield(chr, 0);
chr->cmnum = 0;
chr->cmnum2 = 0;
#ifndef PLATFORM_N64
chr->blurdrugamount = 0;
chr->poisoncounter = 0;
#endif
#if VERSION >= VERSION_NTSC_1_0
bgunFreeFireslot(chr->fireslots[0]);
+4
View File
@@ -530,6 +530,10 @@ void playerStartNewLife(void)
g_Vars.currentplayer->damagetype = DAMAGETYPE_7;
g_Vars.currentplayer->gunammooff = 0;
g_Vars.currentplayer->gunsightoff = 2;
#ifndef PLATFORM_N64
g_Vars.currentplayer->prop->chr->blurdrugamount = 0;
g_Vars.currentplayer->prop->chr->poisoncounter = 0;
#endif
hudmsgsSetOn(0xffffffff);