Page 1 of 1
[fixed] DECORATE parser doesn't catch unterminated block
Posted: Mon May 08, 2006 11:22
by MartinHowe
Code: Select all
ACTOR MyPickup : CustomInventory 15092
{
Radius 44
Height 25
Inventory.PickupMessage "You got the MyPower!"
Inventory.PickupSound "somesound"
+COUNTITEM
States
{
Spawn:
POWR A -1
Stop
Pickup:
TNT1 A 0 A_GiveInventory("MyPower")
Stop
}
The above pickup works fine despite the unterminated state block. The fact that this was the last definition in the DECORATE lump may have something to do with that. (The item names in the above have been censored as they contain spoilers for The Butchery).
Posted: Mon May 08, 2006 22:15
by Graf Zahl
Not that it really matters, but now the parser reports an error if the end of the file is encountered within an actor definition.