diff options
author | rubidium <rubidium@openttd.org> | 2014-10-15 18:31:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-10-15 18:31:37 +0000 |
commit | d534c80e9401c49414f5980aedff13c6100a20c2 (patch) | |
tree | ef6dfe4050f387245c018fb71737a8e0e1c31335 /src/script | |
parent | 155114aa98750b6245e045e347b91d1098d26099 (diff) | |
download | openttd-d534c80e9401c49414f5980aedff13c6100a20c2.tar.xz |
(svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces)
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/script_event_types.cpp | 4 | ||||
-rw-r--r-- | src/script/api/script_station.cpp | 4 | ||||
-rw-r--r-- | src/script/api/script_stationlist.cpp | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/script/api/script_event_types.cpp b/src/script/api/script_event_types.cpp index 9a561093a..d424e6fef 100644 --- a/src/script/api/script_event_types.cpp +++ b/src/script/api/script_event_types.cpp @@ -259,10 +259,10 @@ char *ScriptEventAdminPort::ReadValue(HSQUIRRELVM vm, char *p) sq_newarray(vm, 0); /* Empty array? */ - char *p2 = p+1; + char *p2 = p + 1; SKIP_EMPTY(p2); if (*p2 == ']') { - p = p2+1; + p = p2 + 1; break; } diff --git a/src/script/api/script_station.cpp b/src/script/api/script_station.cpp index 197e97c74..5ed43e0a6 100644 --- a/src/script/api/script_station.cpp +++ b/src/script/api/script_station.cpp @@ -230,7 +230,7 @@ template<bool Tfrom, bool Tvia> return ::Station::Get(station_id)->town->index; } -/*static */ bool ScriptStation::IsAirportClosed(StationID station_id) +/* static */ bool ScriptStation::IsAirportClosed(StationID station_id) { EnforcePrecondition(false, IsValidStation(station_id)); EnforcePrecondition(false, HasStationType(station_id, STATION_AIRPORT)); @@ -238,7 +238,7 @@ template<bool Tfrom, bool Tvia> return (::Station::Get(station_id)->airport.flags & AIRPORT_CLOSED_block) != 0; } -/*static */ bool ScriptStation::OpenCloseAirport(StationID station_id) +/* static */ bool ScriptStation::OpenCloseAirport(StationID station_id) { EnforcePrecondition(false, IsValidStation(station_id)); EnforcePrecondition(false, HasStationType(station_id, STATION_AIRPORT)); diff --git a/src/script/api/script_stationlist.cpp b/src/script/api/script_stationlist.cpp index 7467c1a34..ab9503a1b 100644 --- a/src/script/api/script_stationlist.cpp +++ b/src/script/api/script_stationlist.cpp @@ -41,7 +41,7 @@ ScriptStationList_Cargo::ScriptStationList_Cargo(ScriptStationList_Cargo::CargoM ScriptStationList_Cargo::CargoSelector selector, StationID station_id, CargoID cargo, StationID other_station) { - switch(mode) { + switch (mode) { case CM_WAITING: ScriptStationList_CargoWaiting(selector, station_id, cargo, other_station).SwapList(this); break; @@ -57,7 +57,7 @@ ScriptStationList_CargoWaiting::ScriptStationList_CargoWaiting( ScriptStationList_Cargo::CargoSelector selector, StationID station_id, CargoID cargo, StationID other_station) { - switch(selector) { + switch (selector) { case CS_BY_FROM: ScriptStationList_CargoWaitingByFrom(station_id, cargo).SwapList(this); break; @@ -79,7 +79,7 @@ ScriptStationList_CargoPlanned::ScriptStationList_CargoPlanned( ScriptStationList_Cargo::CargoSelector selector, StationID station_id, CargoID cargo, StationID other_station) { - switch(selector) { + switch (selector) { case CS_BY_FROM: ScriptStationList_CargoPlannedByFrom(station_id, cargo).SwapList(this); break; |