mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-16 20:50:38 +00:00
Duke3d: change random_angle hack in CON_MOVE to match CON_AI
This commit is contained in:
parent
b0902f916a
commit
34126a50be
1 changed files with 4 additions and 4 deletions
|
@ -3519,10 +3519,10 @@ badindex:
|
|||
AC_COUNT(vm.pData) = 0;
|
||||
AC_MOVE_ID(vm.pData) = *insptr++;
|
||||
vm.pSprite->hitag = *insptr++;
|
||||
if (A_CheckEnemySprite(vm.pSprite) && vm.pSprite->extra <= 0) // hack
|
||||
dispatch();
|
||||
if (vm.pSprite->hitag & random_angle)
|
||||
vm.pSprite->ang = krand() & 2047;
|
||||
|
||||
if (!A_CheckEnemySprite(vm.pSprite) || vm.pSprite->extra > 0) // hack
|
||||
if (vm.pSprite->hitag & random_angle)
|
||||
vm.pSprite->ang = krand() & 2047;
|
||||
dispatch();
|
||||
|
||||
vInstruction(CON_ADDWEAPON):
|
||||
|
|
Loading…
Reference in a new issue