diff options
author | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-17 01:00:56 +0000 |
commit | 871107f52952ee59c353feab933126ed206e60bf (patch) | |
tree | 482884dfedc1700bddb8812f1de755212ed8bb22 /src/command.cpp | |
parent | ed1e54bd84074412ea9f273b7cd86aed42d844ce (diff) | |
download | openttd-871107f52952ee59c353feab933126ed206e60bf.tar.xz |
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp index 49804f4b4..b80a4e8b1 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -458,7 +458,7 @@ error: Money GetAvailableMoneyForCommand() { CompanyID company = _current_company; - if (!IsValidCompanyID(company)) return INT64_MAX; + if (!Company::IsValidID(company)) return INT64_MAX; return Company::Get(company)->money; } @@ -590,7 +590,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac DEBUG(desync, 1, "cmd: %08x; %08x; %1x; %06x; %08x; %08x; %04x; %s\n", _date, _date_fract, (int)_current_company, tile, p1, p2, cmd & ~CMD_NETWORK_COMMAND, text); /* update last build coordinate of company. */ - if (tile != 0 && IsValidCompanyID(_current_company)) { + if (tile != 0 && Company::IsValidID(_current_company)) { Company::Get(_current_company)->last_build_coordinate = tile; } |