fix a.m32 script, inserted light SEs now have nonzero repeat

git-svn-id: https://svn.eduke32.com/eduke32@1878 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-05-08 20:12:16 +00:00
parent 203cf0b7b1
commit a0ca3ed041
3 changed files with 6 additions and 3 deletions

View file

@ -142,6 +142,9 @@ defstate insertlights
set .owner light[i].tilenum
set .xrepeat 48
set .yrepeat 48
// now those that are calculated
ifge light[i].priority 4 or .cstat 512
ifge light[i].priority 2 or .cstat 2

View file

@ -7542,7 +7542,7 @@ static void Keys2d(void)
bestzdiff = j;
}
if (bestzdiff==INT_MAX)
if (bestzdiff==INT32_MAX)
{
if (zsign == 1)
bottomp=1, bestzdiff = (hiz+(1024<<4) - pos.z);
@ -7571,7 +7571,7 @@ static void Keys2d(void)
}
else
{
int32_t damin=INT_MAX, damax=INT_MIN;
int32_t damin=INT32_MAX, damax=INT32_MIN;
for (i=0; i<highlightsectorcnt; i++)
{