summaryrefslogtreecommitdiff
path: root/src/map/npc-parse.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-04-29npc_destroy: Defer NPC destruction via timerFreeyorp1-4/+4
055-1 _nodes.txt will call `destroy;` from within OnInit, that is during an iteration of the global `ev_db`. Previously, concurrent modification invalidated this iteration, resulting in a crash. This still nullifes `oid`, dequeues all timers, and effectively calls `builtin_end`. `npc_data::deletion_pending` is extended to include a third state. In addition to no deletion happening, and indicating when `npc_free` is currently on the stack, it now also tracks whether the NPC is about to be deleted by a timer. This means that an NPC which is about to be deleted is still blocked from triggering new events, much like an NPC actively being deleted would. Starting or continuing an NPC dialog with an NPC that does not, or is about to no longer exist, is now also blocked.
2018-01-01release v18.1.1gumi1-0/+8
2016-04-24fix npc gender for ManaPlusmekolat1-1/+4
2016-04-15remove MESSAGE npc subtypemekolat1-30/+0
2016-04-15do not bind trigger detection to map cellsmekolat1-30/+0
2016-04-15implement puppet npcsmekolat1-1/+1
2015-11-13do not require a name for warpsmekolat1-1/+1
2015-06-20add map mask supportmekolat1-1/+14
2015-05-19allow to make npcs sitmekolat1-0/+4
2015-05-02npc -1 => 32767mekolat1-121/+1
2015-04-15Do not require pk_mode for NOPVPmeko1-1/+1
2015-04-05Remove Warp Debug Sprite Actionwushin1-4/+1
2015-01-23Use generated config for mapBen Longbons1-6/+5
2015-01-03Switch MATCH to separate begin/end macrosBen Longbons1-12/+14
The for loop trick turned out to be very prone to infinite loops at runtime. It's better to force compiler errors even if it's ugly.
2014-11-09Add explicit check for mapless eventsBen Longbons1-0/+3
2014-11-09Make it easier to debug scripts, especially from coredumpsBen Longbons1-4/+4
2014-11-05Fix shops not loading and bad pricewushin1-1/+1
2014-11-04Clean up after that messBen Longbons1-0/+1
2014-11-04Use the new ASTsBen Longbons1-464/+513
2014-10-26Fix header rankingBen Longbons1-0/+3
2014-10-13Convert container lookups to use Option<Borrowed<T>>Ben Longbons1-32/+29
2014-10-08Split npc parse functions in to their own fileBen Longbons1-0/+876