mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-29 10:20:36 +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_COUNT(vm.pData) = 0;
|
||||||
AC_MOVE_ID(vm.pData) = *insptr++;
|
AC_MOVE_ID(vm.pData) = *insptr++;
|
||||||
vm.pSprite->hitag = *insptr++;
|
vm.pSprite->hitag = *insptr++;
|
||||||
if (A_CheckEnemySprite(vm.pSprite) && vm.pSprite->extra <= 0) // hack
|
|
||||||
dispatch();
|
if (!A_CheckEnemySprite(vm.pSprite) || vm.pSprite->extra > 0) // hack
|
||||||
if (vm.pSprite->hitag & random_angle)
|
if (vm.pSprite->hitag & random_angle)
|
||||||
vm.pSprite->ang = krand() & 2047;
|
vm.pSprite->ang = krand() & 2047;
|
||||||
dispatch();
|
dispatch();
|
||||||
|
|
||||||
vInstruction(CON_ADDWEAPON):
|
vInstruction(CON_ADDWEAPON):
|
||||||
|
|
Loading…
Reference in a new issue