The above wad has a simple 3d elevator, it lifts to 128 then restarts from the the bottom.
It works fine in Legacy, but in GZDoom it doesn't stop raising.
Code: Select all
[scripts]
script 2
{
while(1)
{
ceilheight(2,ceilheight(2)+2);
floorheight(2,floorheight(2)+2);
if(ceilheight(2) > 128)
{
tip("boo"); //check if if() fires
floorheight(2,4);
ceilheight(2,12);
}
wait(1);
}
}startscript(2);