Widelands supports multiple enhancements per building, but we only use one for all buildings
Bug #1307844 reported by
SirVer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Ferdinand T. |
Bug Description
The engine supports that one building can be enhanced to different kind of buildings. This is not used in the datafiles though and is therefore probably broken.
Remove support for multiple enhancements from the engine.
Related branches
lp:~f-thiessen/widelands/bug-1307844
- SirVer: Approve
-
Diff: 481 lines (+127/-157)7 files modifiedsrc/ai/defaultai.cc (+80/-97)
src/logic/building.cc (+31/-37)
src/logic/building.h (+5/-10)
src/logic/player.cc (+2/-2)
src/map_io/widelands_map_buildingdata_data_packet.cc (+1/-1)
src/wui/buildingwindow.cc (+7/-10)
txts/developers (+1/-0)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
Changed in widelands: | |
status: | Triaged → In Progress |
Changed in widelands: | |
status: | In Progress → Confirmed |
tags: |
added: cleanups removed: cleanup |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have made an attempt at this, but there are still some issues that somebody else will have to fix, because I lack the skills.
http:// bazaar. launchpad. net/~widelands- dev/widelands/ bug-1307844/ revision/ 6959
Specifically, there are TODOs in these files - I'm having trouble here with the switch from Building_Index to string as a datatype:
src/ai/defaultai.cc
src/logic/player.cc
And I can't start a game - there is an error message.