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 .owner light[i].tilenum
set .xrepeat 48
set .yrepeat 48
// now those that are calculated // now those that are calculated
ifge light[i].priority 4 or .cstat 512 ifge light[i].priority 4 or .cstat 512
ifge light[i].priority 2 or .cstat 2 ifge light[i].priority 2 or .cstat 2

View file

@ -211,5 +211,5 @@ alphabet // silver numbers
alphabet alphabet
{ {
maprangea "0" "9" DIGITALNUM maprangea "0" "9" DIGITALNUM
} }

View file

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