>> I'd say that the code could be organised somewhat better ..
Definitely. The code as it stands is a legacy of bits and pieces I've picked up from various places (the map editor began as a hybrid of two existing editors). If I'd had a decent tutorial or a chunk of example code such as yours at the beginning, it wouldn't look as shabby as it does :)
Restructuring my main loop is something I've been meaning to do for a while, though - there's a couple of things I'd do slightly differently (though I *really* like your maplmd/maprmd system), but yours is a nice, crisp, well-presented example. Cheers :)
>> Anyway.. try to study this map-editor example below..
So basically, my code wasn't working because I should have been checking the EventSource and *then* the EventID...? Blimey!
Definitely. The code as it stands is a legacy of bits and pieces I've picked up from various places (the map editor began as a hybrid of two existing editors). If I'd had a decent tutorial or a chunk of example code such as yours at the beginning, it wouldn't look as shabby as it does :)
Restructuring my main loop is something I've been meaning to do for a while, though - there's a couple of things I'd do slightly differently (though I *really* like your maplmd/maprmd system), but yours is a nice, crisp, well-presented example. Cheers :)
>> Anyway.. try to study this map-editor example below..
So basically, my code wasn't working because I should have been checking the EventSource and *then* the EventID...? Blimey!