Wincondition scripts reloaded too often
Bug #1205609 reported by
cghislai
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
cghislai |
Bug Description
When you enter the load replay window, all win condition scripts are loaded once for each replay - probably during preloading.
The scripts should only be loaded once, at the start of the game.
Related branches
lp:~widelands-dev/widelands/wareslist_sizes
- SirVer: Approve
-
Diff: 176 lines (+28/-27)5 files modifiedsrc/logic/editor_game_base.cc (+4/-0)
src/ui_fsmenu/loadreplay.cc (+6/-7)
src/ui_fsmenu/loadreplay.h (+14/-12)
src/wlapplication.cc (+4/-4)
src/wui/waresdisplay.cc (+0/-4)
summary: |
- Wincondition scripts reloaded for each replay in the load replay screen + Wincondition scripts reloaded too often |
Changed in widelands: | |
status: | Incomplete → Confirmed |
assignee: | nobody → cghislai (charlyghislain) |
milestone: | none → build18-rc1 |
Changed in widelands: | |
status: | Confirmed → Incomplete |
milestone: | build18-rc1 → none |
assignee: | cghislai (charlyghislain) → nobody |
Changed in widelands: | |
assignee: | nobody → cghislai (charlyghislain) |
milestone: | none → build18-rc1 |
Changed in widelands: | |
status: | Incomplete → In Progress |
To post a comment you must log in.
Why do you consider this a bug? I mean, yes it could be done more performanently, but I do not notice any delay. Lua is very fast and the delay of going to disk (for the replay itself) is already paid, so it should not matter.