Revision: 9227
http://sourceforge.net/p/vassalengine/svn/9227
Author: swampwallaby
Date: 2016-05-09 08:00:52 +0000 (Mon, 09 May 2016)
Log Message:
-----------
Fix company stacking issue
Modified Paths:
--------------
VSQL-src/trunk/bfn/StackingChecker.java
Modified: VSQL-src/trunk/bfn/StackingChecker.java
===================================================================
--- VSQL-src/trunk/bfn/StackingChecker.java 2016-05-09 07:59:14 UTC (rev 9226)
+++ VSQL-src/trunk/bfn/StackingChecker.java 2016-05-09 08:00:52 UTC (rev 9227)
@@ -142,7 +142,9 @@
boolean geHqFpSeen = false;
boolean navalSeen = false;
boolean nonNavalSeen = false;
+ boolean isCompany = false;
+
for (GamePiece piece : pieces) {
final String pieceType = (String) piece.getProperty(BfnProperties.TYPE);
@@ -177,8 +179,9 @@
final String unitClass = (String) piece.getProperty(BfnProperties.CLASS);
final String unitSubClass = (String) piece.getProperty(BfnProperties.SUBCLASS);
+ isCompany = "true".equals(piece.getProperty(BfnProperties.PROP_BRK));
- if (BfnProperties.SUBCLASS_BREAKDOWN.equals(unitSubClass)) {
+ if (isCompany) {
companyCount++;
}
else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
vassalengine-svn mailing list
vas...@li...
https://lists.sourceforge.net/lists/listinfo/vassalengine-svn
|