Issue #1230 - Set spectator back to false just for running the hook
1 unresolved thread
Potential fix for #1230 (closed) ... read the discussion in that issue, please.
Merge request reports
Activity
Filter activity
Copying what I mentioned on Discord.
I think a
if (player->spectator) { return false; }
statement, or something similar, might be better in theP_PlayerInPain
function in p_user.c:977 rather than settingplayer->spectator = true
for the purposes of the hook.https://git.do.srb2.org/STJr/SRB2/-/blob/next/src/p_user.c#L977
Open to suggestions. This might tie into the
player->mo
limitations in Lua whereplayer->mo
cannot be found as a spectator.player->realmo
was created to satisfy this if I recall correctly.
Please register or sign in to reply