Merge lp:~qcumber-some/widelands/bug1332856 into lp:widelands
Proposed by
Jens Beyer
Status: | Merged |
---|---|
Merged at revision: | 7005 |
Proposed branch: | lp:~qcumber-some/widelands/bug1332856 |
Merge into: | lp:widelands |
Diff against target: |
154 lines (+48/-11) 10 files modified
src/logic/worker.cc (+1/-1) test/maps/plain.wmf/elemental (+1/-1) test/maps/plain.wmf/extra_data (+1/-1) test/maps/plain.wmf/objective (+1/-1) test/maps/plain.wmf/player_names (+1/-1) test/maps/plain.wmf/player_position (+1/-1) test/maps/plain.wmf/port_spaces (+1/-1) test/maps/plain.wmf/scripting/init.lua (+1/-1) test/maps/plain.wmf/scripting/test_geologist_messages_do_not_crash.lua (+37/-0) test/maps/plain.wmf/version (+3/-3) |
To merge this branch: | bzr merge lp:~qcumber-some/widelands/bug1332856 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jens Beyer | Needs Resubmitting | ||
SirVer | Needs Fixing | ||
Review via email: mp+224028@code.launchpad.net |
Description of the change
This is the emergency fix for this bug, preventing the crashes.
Further todo should be fixing this correctly (different bug).
To post a comment you must log in.
hard coding is unfortunate of course. I wish there was an easy way to fix this for good.
One suggestion: Could you try adding a regression test? plain.wmf/ scripting/ test_fires_ do_not_ burn_forever. lua to test/maps/ plain.wmf/ scripting/ test_geologist_ messages_ do_not_ crash.lua. Then change the plain.wmf map to contain a bunch of hills with all findable resources (do not forget water). Script geologists going to these hills (enough of them) and check after a while that 5 messages have arrived. Click on the button (via ui scripting) and delete one message after another - so that all will get rendered once.
Copy test/maps/