summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-14 15:49:43 +0000
committerDarkvater <darkvater@openttd.org>2006-10-14 15:49:43 +0000
commitdad5d5dd72a32b3dbaea68c71e996f053fa557e7 (patch)
tree4d65683dddf832ac860c3ff0f26f99db4e9ea997 /openttd.c
parentabb0fa7bc53d755463d6cb314ac6044b5dcb22af (diff)
downloadopenttd-dad5d5dd72a32b3dbaea68c71e996f053fa557e7.tar.xz
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and
put it into player.h where it belongs (instead of map.h)
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openttd.c b/openttd.c
index 5a2d76d7f..77a8256f2 100644
--- a/openttd.c
+++ b/openttd.c
@@ -586,7 +586,7 @@ static void MakeNewGameDone(void)
{
/* In a dedicated server, the server does not play */
if (_network_dedicated) {
- _local_player = OWNER_SPECTATOR;
+ _local_player = PLAYER_SPECTATOR;
return;
}
@@ -794,7 +794,7 @@ void SwitchMode(int new_mode)
/* Delete all players */
FOR_ALL_PLAYERS(p) {
if (p->is_active) {
- ChangeOwnershipOfPlayerItems(p->index, OWNER_SPECTATOR);
+ ChangeOwnershipOfPlayerItems(p->index, PLAYER_SPECTATOR);
p->is_active = false;
}
}
@@ -874,7 +874,7 @@ static void DoAutosave(void)
{
char buf[200];
- if (_patches.keep_all_autosave && _local_player != OWNER_SPECTATOR) {
+ if (_patches.keep_all_autosave && _local_player != PLAYER_SPECTATOR) {
const Player *p = GetPlayer(_local_player);
char *s;
sprintf(buf, "%s%s", _path.autosave_dir, PATHSEP);