I've been looking for some traction on bug #10354 (Loading linger mode
savegame has problems) for two days. The symptom is that if you do
a save from linger mode after killing the enemy leader, and then
reload that save, the leader reappears with 0 hit points.
I've gotten nowhere. The code is just too opaque. I'm stumped.
Here's what I know:
1. It does happen in AToTB and Liberty, but *doesn't* happen in AOI.
2. It didn't manifest until I changed the savefile-load code to not fire
the victory event a second time when a linger-mode save is loaded.
I therefore guess that it has something to do with the timing of when
killed units are removed from some internal list, but I don't know any
more than that guess.
I'm also fairly sure this is actually a pre-existing data-management
flaw that linger mode has merely revealed rather than creating.
If anybody out there actually understands the logic around unit deaths
I could use some insight.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
Non-cooperation with evil is as much a duty as cooperation with good.
-- Mohandas Gandhi
_______________________________________________
Wesnoth-dev mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-dev