|
From: Erik V. <ev...@us...> - 2011-09-30 11:54:31
|
rails/game/OperatingRound.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 4ebc9085c07dccba67fc7f5b361b61bfbfb486d7
Author: Erik Vos <eri...@xs...>
Date: Fri Sep 30 13:54:12 2011 +0200
Fix to allow laying THB home token if track exists.
By Bill Rosgen
diff --git a/rails/game/OperatingRound.java b/rails/game/OperatingRound.java
index ec8de9c..f2ccfef 100644
--- a/rails/game/OperatingRound.java
+++ b/rails/game/OperatingRound.java
@@ -361,7 +361,13 @@ public class OperatingRound extends Round implements Observer {
if (!operatingCompany.get().hasLaidHomeBaseTokens()) {
// This can occur if the home hex has two cities and track,
// such as the green OO tile #59
- possibleActions.add(new LayBaseToken (operatingCompany.get().getHomeHexes()));
+
+ // BR: as this is a home token, need to call LayBaseToken with a MapHex, not a list
+ // to avoid the LayBaseToken action from being a regular token lay
+ // I am not sure that this will work with multiple home hexes.
+ for (MapHex home : operatingCompany.get().getHomeHexes()) {
+ possibleActions.add(new LayBaseToken (home) );
+ }
forced = true;
} else {
possibleActions.addAll(getNormalTileLays(true));
|