Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-15 Thread GunChleoc
You trigger those by conquering a foreign military site and then again by destroying it. I ran a setup on Golden Peninsula where I gave the opponent the "Village" starting condition. so that I could easily conquer something. --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-15 Thread Klaus Halfmann
Review: Approve compile, revied, debug for coverage, testplay I testplayed this now on a seafaring Map: * I was unable to reach the following lies of code: * BuildingStatisticsMenu::foreign_tribe_building_is_valid() ... if (descr.type() == MapObjectType::CONSTRUCTIONSITE ||

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-14 Thread Klaus Halfmann
I did some testplaying with a debugger now and gained some coverage of that code: * Everything worked as expected so far. * The Handling of the forward / backward buttons has room for improvement: * no need so use large switch blocks -> call the repective function directly. * Maybe I can do

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-13 Thread Klaus Halfmann
fetched it again, no idea if I have time at the weekend. -- https://code.launchpad.net/~widelands-dev/widelands/smaller_building_statistics/+merge/342828 Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/smaller_building_statistics.

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-11 Thread GunChleoc
Review: Resubmit I know - I have taken care of it. Branch is ready; I'll put it up for review as soon as Launchpad has finished parsing it. https://code.launchpad.net/~widelands-dev/widelands/allows_seafaring_performance --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-10 Thread Klaus Halfmann
Mhh, scripts might want to add seafaring later in some scenario. Hopefully this will not break such scripts. Anyway, I do not have that much time today for a debugging session, lets see what I can do perhaps next weekend. --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-09 Thread GunChleoc
I have changed my mind about the seafaring check - since this is so expensive, we should generally only recalculate it on map changes. I'll create another branch for it, to be merged before this branch. --

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-09 Thread GunChleoc
Thanks for the review :) And you were right about the efficiency concerns, the seafaring check is causing a slowdown. I have reduced it to be checked once every 2 minutes. Diff comments: > > === modified file 'src/ui_basic/tabpanel.cc' > --- src/ui_basic/tabpanel.cc 2017-08-08 17:39:40 +

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-08 Thread Klaus Halfmann
Some more commetns inline, I think this deserves some time in the debugger. Mostly for me to better understand the widelands internal structures. Maybe this will make things slower, Not sure about this, lets seee. Diff comments: > > === modified file 'src/wui/building_statistics_menu.cc' > ---

Re: [Widelands-dev] [Merge] lp:~widelands-dev/widelands/smaller_building_statistics into lp:widelands

2018-04-08 Thread Klaus Halfmann
One question inline, will take a closer look later. just brached this and will have a look. Not sure who will be the payer for the other tribes military sites ;-) ? Diff comments: > > === modified file 'src/ui_basic/tabpanel.cc' > --- src/ui_basic/tabpanel.cc 2017-08-08 17:39:40 + > +++