You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Ask for the map instead of asserting on it
GetMap() asserts on a NULL map, so `if (GetMap())` is not a guard against an
object that never reached one -- it is the crash. Add WorldObject::FindMap(),
which returns NULL, and use it in the motion-frame lookup, which is reached from
a destructor after LoadFromDB failed.
Also ApplyNewEvent, which inserts a game_event_status row that a resumed event
already holds: INSERT IGNORE makes it idempotent.
Not compiled.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Send a boarded player the map his ship sails, not the one he stands on
The transfer packet named GetMapId(), which for someone aboard is the vessel's own
map. The client has no terrain for that id -- it was never meant to hear of it --
and dies in CMap::LoadWdt() looking for one. It has to be the map she sails, which
is the map he is leaving and the one his client is still rendering.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* Crashes, pets and extractor
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments