|
@@ -338,13 +338,13 @@ verify_name:;
|
|
|
set_name:;
|
|
|
p->name_1 = str;
|
|
|
p->name_2 = strp;
|
|
|
|
|
|
MarkWholeScreenDirty();
|
|
|
|
|
|
if (!IS_HUMAN_PLAYER(p->index)) {
|
|
|
if (!IsHumanPlayer(p->index)) {
|
|
|
SetDParam(0, t->index);
|
|
|
AddNewsItem(p->index + (4 << 4), NEWS_FLAGS(NM_CALLBACK, NF_TILE, NT_COMPANY_INFO, DNC_BANKRUPCY), p->last_build_coordinate, 0);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
bad_town_name:;
|
|
@@ -581,13 +581,13 @@ void OnTick_Players(void)
|
|
|
MaybeStartNewPlayer();
|
|
|
}
|
|
|
|
|
|
// index is the next parameter in _decode_parameters to set up
|
|
|
StringID GetPlayerNameString(PlayerID player, uint index)
|
|
|
{
|
|
|
if (IS_HUMAN_PLAYER(player) && player < MAX_PLAYERS) {
|
|
|
if (IsHumanPlayer(player) && player < MAX_PLAYERS) {
|
|
|
SetDParam(index, player+1);
|
|
|
return STR_7002_PLAYER;
|
|
|
}
|
|
|
return STR_EMPTY;
|
|
|
}
|
|
|
|
|
@@ -914,13 +914,13 @@ int32 CmdPlayerCtrl(TileIndex tile, uint
|
|
|
|
|
|
if (!(flags & DC_EXEC)) return 0;
|
|
|
|
|
|
p = GetPlayer(p2);
|
|
|
|
|
|
/* Only allow removal of HUMAN companies */
|
|
|
if (IS_HUMAN_PLAYER(p->index)) {
|
|
|
if (IsHumanPlayer(p->index)) {
|
|
|
/* Delete any open window of the company */
|
|
|
DeletePlayerWindows(p->index);
|
|
|
|
|
|
/* Show the bankrupt news */
|
|
|
SetDParam(0, p->name_1);
|
|
|
SetDParam(1, p->name_2);
|
|
@@ -1265,13 +1265,13 @@ static void SaveLoad_PLYR(Player* p)
|
|
|
{
|
|
|
int i;
|
|
|
|
|
|
SlObject(p, _player_desc);
|
|
|
|
|
|
// Write AI?
|
|
|
if (!IS_HUMAN_PLAYER(p->index)) {
|
|
|
if (!IsHumanPlayer(p->index)) {
|
|
|
SlObject(&p->ai, _player_ai_desc);
|
|
|
for (i = 0; i != p->ai.num_build_rec; i++) {
|
|
|
SlObject(&p->ai.src + i, _player_ai_build_rec_desc);
|
|
|
}
|
|
|
}
|
|
|
|