From 3b798599b63067c2e92aa49906ea66a07ae8de44 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 30 Sep 2008 20:39:50 +0000 Subject: (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. --- src/newgrf_station.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/newgrf_station.cpp') diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index f90ae845c..103ff25f8 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -382,10 +382,10 @@ static uint32 StationGetVariable(const ResolverObject *object, byte variable, by case 0x41: case 0x46: case 0x47: - case 0x49: return 0x2110000; // Platforms, tracks & position - case 0x42: return 0; // Rail type (XXX Get current type from GUI?) - case 0x43: return _current_player; // Station owner - case 0x44: return 2; // PBS status + case 0x49: return 0x2110000; // Platforms, tracks & position + case 0x42: return 0; // Rail type (XXX Get current type from GUI?) + case 0x43: return _current_company; // Station owner + case 0x44: return 2; // PBS status case 0xFA: return Clamp(_date - DAYS_TILL_ORIGINAL_BASE_YEAR, 0, 65535); // Build date, clamped to a 16 bit value } @@ -782,7 +782,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID const RailtypeInfo *rti = GetRailTypeInfo(railtype); SpriteID relocation; SpriteID image; - SpriteID palette = PLAYER_SPRITE_COLOR(_local_player); + SpriteID palette = COMPANY_SPRITE_COLOR(_local_company); uint tile = 2; statspec = GetCustomStationSpec(sclass, station); -- cgit v1.2.3-70-g09d2