From 10474ad635446decdf6d60424b31f67a4294588b Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Sep 2014 04:15:29 +0000 Subject: [PATCH] CON VM: get rid of extra VM_Execute() calls on CON_LEFTBRACE and get rid of returns on CON_RIGHTBRACE git-svn-id: https://svn.eduke32.com/eduke32@4627 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gameexec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 36dcd4bf3..87ad37b60 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -1148,7 +1148,7 @@ LUNATIC_EXTERN void G_ShowView(int32_t x, int32_t y, int32_t z, int32_t a, int32 #if !defined LUNATIC GAMEEXEC_STATIC void VM_Execute(int32_t loop) { - register int32_t tw = *insptr; + int32_t tw = *insptr; // jump directly into the loop, saving us from the checks during the first iteration goto skip_check; @@ -1629,8 +1629,9 @@ skip_check: case CON_ENDS: return; case CON_RIGHTBRACE: + loop--; insptr++; - return; + continue;; case CON_ADDAMMO: insptr++; @@ -1780,7 +1781,8 @@ skip_check: case CON_LEFTBRACE: insptr++; - VM_Execute(1); + loop++; +// VM_Execute(1); continue; case CON_MOVE: