(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
This commit is contained in:
@@ -73,7 +73,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
if (strlen(text) >= MAX_LENGTH_SIGN_NAME_BYTES) return CMD_ERROR;
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
Sign *si = GetSign(p1);
|
||||
Sign *si = Sign::Get(p1);
|
||||
|
||||
/* Delete the old name */
|
||||
free(si->name);
|
||||
@@ -89,7 +89,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
}
|
||||
} else { // Delete sign
|
||||
if (flags & DC_EXEC) {
|
||||
Sign *si = GetSign(p1);
|
||||
Sign *si = Sign::Get(p1);
|
||||
|
||||
MarkSignDirty(si);
|
||||
delete si;
|
||||
@@ -111,7 +111,7 @@ CommandCost CmdRenameSign(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32
|
||||
void CcPlaceSign(bool success, TileIndex tile, uint32 p1, uint32 p2)
|
||||
{
|
||||
if (success) {
|
||||
ShowRenameSignWindow(GetSign(_new_sign_id));
|
||||
ShowRenameSignWindow(Sign::Get(_new_sign_id));
|
||||
ResetObjectToPlace();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user