From: Stefan F. <ste...@we...> - 2010-09-06 21:27:56
|
In a test game on 1835 I found several bugs: As most of them were pretty basic/standard, it was easier to fix them directly instead of forwarding bug reports to Erik. Nearly all of the bugs are either related to PR formation or nationalisation, thus playing until that stage works ok. Stefan List of my changes: - Tile 213 update was incorrect - Pr funding money not given, but see TODO 1 - PR formation round acted as a stock round (side effect: price increase, wrong round names), removed call to super.finishRound() - Undo inside PR formation round creates weird states, fixed by changing to linked moveSets - Nationalisation did not check certificate limits before action (post-action check was ok) - Nationalisation prevents selling of stocks (due to self-nationalisation bug) - Pr 5% shares report only 1/4 of value, 10% shares only 1/2 of value(report window, executed correctly fixed currentSellPrice, see TODO 2 and 3, adjusted output) - Added manual closing of OBB Remaining TODOs: 1) Implement SharePriceUnits everywhere it is appropriate (e.g. Round method floating()) 2) SellPrices is not a stateful map (=> undo side effects!) 3) Selling PR president is shown as selling two 5 percent shares (which might be correct) but selling those creates all kind of crazy effects |