summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-12-28 14:22:51 +0000
committersmatz <smatz@openttd.org>2010-12-28 14:22:51 +0000
commitaa4f269f3efba32dca44c149d6846295f9479215 (patch)
tree81600f04cff8b0c7771cb5eca2b4589d465f8e02
parentade19e52429321b4f927af77a96438d13fbdcbfe (diff)
downloadopenttd-aa4f269f3efba32dca44c149d6846295f9479215.tar.xz
(svn r21652) -Cleanup: one semicolon is enough
-rw-r--r--src/engine.cpp2
-rw-r--r--src/pathfinder/yapf/yapf_road.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 8e19a2990..ecc175e4a 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -195,7 +195,7 @@ uint Engine::GetDisplayDefaultCapacity(uint16 *mail_capacity) const
return GetEngineProperty(this->index, PROP_SHIP_CARGO_CAPACITY, this->u.ship.capacity);
case VEH_AIRCRAFT: {
- uint capacity = GetEngineProperty(this->index, PROP_AIRCRAFT_PASSENGER_CAPACITY, this->u.air.passenger_capacity);;
+ uint capacity = GetEngineProperty(this->index, PROP_AIRCRAFT_PASSENGER_CAPACITY, this->u.air.passenger_capacity);
CargoID cargo = this->GetDefaultCargoType();
if (IsCargoInClass(cargo, CC_PASSENGERS)) {
if (mail_capacity != NULL) *mail_capacity = GetEngineProperty(this->index, PROP_AIRCRAFT_MAIL_CAPACITY, this->u.air.mail_capacity);
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp
index 57d020622..4bfa5b589 100644
--- a/src/pathfinder/yapf/yapf_road.cpp
+++ b/src/pathfinder/yapf/yapf_road.cpp
@@ -150,7 +150,7 @@ public:
/* move to the next tile */
tile = F.m_new_tile;
trackdir = new_td;
- if (tiles > MAX_MAP_SIZE) break;;
+ if (tiles > MAX_MAP_SIZE) break;
};
/* save end of segment back to the node */