(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
This commit is contained in:
@@ -35,7 +35,7 @@ CommandCost CmdSetPlayerFace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
{
|
||||
PlayerFace pf = (PlayerFace)p2;
|
||||
|
||||
if (!IsValidPlayerFace(pf)) return CMD_ERROR;
|
||||
if (!IsValidPlayerIDFace(pf)) return CMD_ERROR;
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
GetPlayer(_current_player)->face = pf;
|
||||
@@ -366,7 +366,7 @@ CommandCost CmdGiveMoney(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
|
||||
|
||||
/* You can only transfer funds that is in excess of your loan */
|
||||
if (p->player_money - p->current_loan < amount.GetCost() || amount.GetCost() <= 0) return CMD_ERROR;
|
||||
if (!_networking || !IsValidPlayer((PlayerID)p2)) return CMD_ERROR;
|
||||
if (!_networking || !IsValidPlayerID((PlayerID)p2)) return CMD_ERROR;
|
||||
|
||||
if (flags & DC_EXEC) {
|
||||
/* Add money to player */
|
||||
|
Reference in New Issue
Block a user