summaryrefslogtreecommitdiff
path: root/src/signs.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-30 20:39:50 +0000
committerrubidium <rubidium@openttd.org>2008-09-30 20:39:50 +0000
commit3b798599b63067c2e92aa49906ea66a07ae8de44 (patch)
tree69fb7ae1d9bdadb9e7386cb70b0a26621ad9b57f /src/signs.cpp
parentcc1e761edab14f8264dba44d09f7272d931bdd93 (diff)
downloadopenttd-3b798599b63067c2e92aa49906ea66a07ae8de44.tar.xz
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
Diffstat (limited to 'src/signs.cpp')
-rw-r--r--src/signs.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/signs.cpp b/src/signs.cpp
index a9827c015..c9da4655d 100644
--- a/src/signs.cpp
+++ b/src/signs.cpp
@@ -28,7 +28,7 @@ SignID _new_sign_id;
/* Initialize the sign-pool */
DEFINE_OLD_POOL_GENERIC(Sign, Sign)
-Sign::Sign(PlayerID owner)
+Sign::Sign(Owner owner)
{
this->owner = owner;
}
@@ -40,7 +40,7 @@ Sign::~Sign()
if (CleaningPool()) return;
DeleteRenameSignWindow(this->index);
- this->owner = INVALID_PLAYER;
+ this->owner = INVALID_OWNER;
}
/**
@@ -105,7 +105,7 @@ CommandCost CmdPlaceSign(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* When we execute, really make the sign */
if (flags & DC_EXEC) {
- Sign *si = new Sign(_current_player);
+ Sign *si = new Sign(_current_company);
int x = TileX(tile) * TILE_SIZE;
int y = TileY(tile) * TILE_SIZE;
@@ -146,7 +146,7 @@ CommandCost CmdRenameSign(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
free(si->name);
/* Assign the new one */
si->name = strdup(_cmd_text);
- si->owner = _current_player;
+ si->owner = _current_company;
/* Update; mark sign dirty twice, because it can either becom longer, or shorter */
MarkSignDirty(si);