[fixed] DECORATE parser doesn't catch unterminated block

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
MartinHowe
Posts: 154
Joined: Tue Aug 30, 2005 22:07
Location: East Suffolk (UK)

[fixed] DECORATE parser doesn't catch unterminated block

Post 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).
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
Locked

Return to “Closed Bugs”