From 3f641d314fddf8aa11656192d67c48b9a9d326ee Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 27 Aug 2016 01:39:53 +0000 Subject: [PATCH] Fix EVENT_DISPLAYROOMS and EVENT_DISPLAYROOMSCAMERA RETURN values git-svn-id: https://svn.eduke32.com/eduke32@5818 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 3665c8ecc..8dfb354da 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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);