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:
helixhorned 2012-06-26 19:50:04 +00:00
parent 9dbf439f45
commit c001749dee

View file

@ -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