mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 01:11:44 +00:00
Fix EVENT_DISPLAYROOMS and EVENT_DISPLAYROOMSCAMERA RETURN values
git-svn-id: https://svn.eduke32.com/eduke32@5818 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ae7fcd43a6
commit
3f641d314f
1 changed files with 2 additions and 2 deletions
|
@ -737,7 +737,7 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio)
|
|||
CAMERA(ang) = actor[ud.camerasprite].tempang +
|
||||
mulscale16(((s->ang+1024-actor[ud.camerasprite].tempang)&2047)-1024, smoothratio);
|
||||
|
||||
dont_draw = VM_OnEvent(EVENT_DISPLAYROOMSCAMERA, p->i, snum);
|
||||
dont_draw = VM_OnEventWithReturn(EVENT_DISPLAYROOMSCAMERA, p->i, snum, 0);
|
||||
|
||||
if (dont_draw != 1) // event return values other than 0 and 1 are reserved
|
||||
{
|
||||
|
@ -1001,7 +1001,7 @@ void G_DrawRooms(int32_t snum, int32_t smoothratio)
|
|||
|
||||
// NOTE: might be rendering off-screen here, so CON commands that draw stuff
|
||||
// like showview must cope with that situation or bail out!
|
||||
dont_draw = VM_OnEvent(EVENT_DISPLAYROOMS, p->i, snum);
|
||||
dont_draw = VM_OnEventWithReturn(EVENT_DISPLAYROOMS, p->i, snum, 0);
|
||||
|
||||
CAMERA(horiz) = clamp(CAMERA(horiz), HORIZ_MIN, HORIZ_MAX);
|
||||
|
||||
|
|
Loading…
Reference in a new issue