Zwiebelchen
Hosted Project GR
- Joined
- Sep 17, 2009
- Messages
- 7,236
I don't know if this is known to all of you; it's a weird bug with the Map editor that has recently cost me many many hours of hair-splitting and looking for a bug in my code that didn't even exist to begin with.
So, I wanted to bring this to your attention just to spread awareness of it, especially when going bug-hunting in the TriggerHelp section.
The item category "Miscellaneous" in the object editor does not return true for:
Instead, the OE category must be checked against this:
So, I wanted to bring this to your attention just to spread awareness of it, especially when going bug-hunting in the TriggerHelp section.
The item category "Miscellaneous" in the object editor does not return true for:
GetItemType(item) == ITEM_TYPE_MISCELLANEOUS
Instead, the OE category must be checked against this:
GetItemType(item) == ITEM_TYPE_UNKNOWN
ITEM_TYPE_MISCELLANEOUS
seems to have no corresponding category in the object editor, so it's pretty much a dead constant.