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/signs_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/signs_gui.cpp') diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 496444a87..eee35a2c8 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -111,7 +111,7 @@ struct SignListWindow : Window, SignList { for (uint16 i = this->vscroll.pos; i < this->vscroll.cap + this->vscroll.pos && i < this->vscroll.count; i++) { const Sign *si = this->signs[i]; - if (si->owner != OWNER_NONE) DrawPlayerIcon(si->owner, 4, y + 1); + if (si->owner != OWNER_NONE) DrawCompanyIcon(si->owner, 4, y + 1); SetDParam(0, si->index); DrawString(22, y, STR_SIGN_NAME, TC_YELLOW); @@ -349,7 +349,7 @@ static const WindowDesc _query_sign_edit_desc = { void HandleClickOnSign(const Sign *si) { - if (_ctrl_pressed && si->owner == _local_player) { + if (_ctrl_pressed && si->owner == _local_company) { RenameSign(si->index, NULL); return; } -- cgit v1.2.3-54-g00ecf