From f56e630e5cb839b307f04bf52465c4db4d1ad904 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/elrail.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/elrail.cpp') diff --git a/src/elrail.cpp b/src/elrail.cpp index 7558c9ded..627c7584c 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -465,7 +465,7 @@ void DrawCatenary(const TileInfo *ti) int32 SettingsDisableElrail(int32 p1) { Vehicle *v; - Player *p; + Company *c; bool disable = (p1 != 0); /* we will now walk through all electric train engines and change their railtypes if it is the wrong one*/ @@ -506,7 +506,7 @@ int32 SettingsDisableElrail(int32 p1) } } - FOR_ALL_PLAYERS(p) p->avail_railtypes = GetPlayerRailtypes(p->index); + FOR_ALL_COMPANIES(c) c->avail_railtypes = GetCompanyRailtypes(c->index); /* This resets the _last_built_railtype, which will be invalid for electric * rails. It may have unintended consequences if that function is ever -- cgit v1.2.3-70-g09d2