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
This commit is contained in:
terminx 2014-09-30 04:15:29 +00:00
parent 9839802457
commit 10474ad635

View file

@ -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 #if !defined LUNATIC
GAMEEXEC_STATIC void VM_Execute(int32_t loop) 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 // jump directly into the loop, saving us from the checks during the first iteration
goto skip_check; goto skip_check;
@ -1629,8 +1629,9 @@ skip_check:
case CON_ENDS: case CON_ENDS:
return; return;
case CON_RIGHTBRACE: case CON_RIGHTBRACE:
loop--;
insptr++; insptr++;
return; continue;;
case CON_ADDAMMO: case CON_ADDAMMO:
insptr++; insptr++;
@ -1780,7 +1781,8 @@ skip_check:
case CON_LEFTBRACE: case CON_LEFTBRACE:
insptr++; insptr++;
VM_Execute(1); loop++;
// VM_Execute(1);
continue; continue;
case CON_MOVE: case CON_MOVE: