projects
/
fleet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eb7f85
)
do not write ucf file if fleet has no instances of a given ship
author
Adam Megacz
<adam@megacz.com>
Sun, 30 Aug 2009 02:06:56 +0000
(19:06 -0700)
committer
Adam Megacz
<adam@megacz.com>
Sun, 30 Aug 2009 02:06:56 +0000
(19:06 -0700)
src/edu/berkeley/fleet/fpga/Fpga.java
patch
|
blob
|
history
diff --git
a/src/edu/berkeley/fleet/fpga/Fpga.java
b/src/edu/berkeley/fleet/fpga/Fpga.java
index
ef5a246
..
6a6734c
100644
(file)
--- a/
src/edu/berkeley/fleet/fpga/Fpga.java
+++ b/
src/edu/berkeley/fleet/fpga/Fpga.java
@@
-164,6
+164,7
@@
public class Fpga extends FleetTwoFleet {
public void expand(ShipDescription sd) {
try {
if (sd.getSection("fpga")==null) return;
+ if (getShip(sd.getName(),0)==null) return; // no ships of this type
String filename = sd.getName().toLowerCase();
if (sd.getSection("ucf") != null) {