mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
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:
parent
9839802457
commit
10474ad635
1 changed files with 5 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue