mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix actors at action 0 executing the action C code protion in gameexec.c.
The bug was introduced with SAMESIZE_ACTOR_T enabling in r2208. This fixes being unable to read the messages in A.Dream* by zykov eddy. git-svn-id: https://svn.eduke32.com/eduke32@2788 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9dbf439f45
commit
c001749dee
1 changed files with 3 additions and 1 deletions
|
@ -5053,7 +5053,9 @@ void A_Execute(int32_t iActor,int32_t iPlayer,int32_t lDist)
|
||||||
* which might be corrected if the code is converted to use offsets */
|
* which might be corrected if the code is converted to use offsets */
|
||||||
/* Helixhorned: let's do away with intptr_t's... */
|
/* Helixhorned: let's do away with intptr_t's... */
|
||||||
#ifndef LUNATIC
|
#ifndef LUNATIC
|
||||||
if ((unsigned)vm.g_t[4] + 4 < (unsigned)g_scriptSize)
|
// NOTE: for Lunatic, need split into numeric literal / action label
|
||||||
|
// (maybe >=0/<0, respectively?)
|
||||||
|
if (vm.g_t[4]!=0 && (unsigned)vm.g_t[4] + 4 < (unsigned)g_scriptSize)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifndef LUNATIC
|
#ifndef LUNATIC
|
||||||
|
|
Loading…
Reference in a new issue