From 5207f919788db4ee265f624e53fae518c4d34046 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 19 May 2012 14:39:29 +0000 Subject: [PATCH] Fix the previous/next weapon events git-svn-id: https://svn.eduke32.com/eduke32@2675 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sector.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index d78890cdf..253d6a4f4 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -2710,13 +2710,13 @@ CHECKINV1: case -1: break; default: - j = (uint32_t)VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, j); + j = VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, j); break; case 10: - VM_OnEvent(EVENT_PREVIOUSWEAPON,p->i,snum, -1, 0); + j = VM_OnEvent(EVENT_PREVIOUSWEAPON,p->i,snum, -1, j); break; case 11: - VM_OnEvent(EVENT_NEXTWEAPON,p->i,snum, -1, 0); + j = VM_OnEvent(EVENT_NEXTWEAPON,p->i,snum, -1, j); break; }