forked from mirror/OpenTTD
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
This commit is contained in:
@@ -547,10 +547,10 @@ static char *MakeScreenshotName(const char *ext)
|
||||
int serial;
|
||||
size_t len;
|
||||
|
||||
if (_game_mode == GM_EDITOR || _game_mode == GM_MENU || _local_player == PLAYER_SPECTATOR) {
|
||||
if (_game_mode == GM_EDITOR || _game_mode == GM_MENU || _local_company == COMPANY_SPECTATOR) {
|
||||
ttd_strlcpy(_screenshot_name, "screenshot", lengthof(_screenshot_name));
|
||||
} else {
|
||||
SetDParam(0, _local_player);
|
||||
SetDParam(0, _local_company);
|
||||
SetDParam(1, _date);
|
||||
GetString(_screenshot_name, STR_4004, lastof(_screenshot_name));
|
||||
}
|
||||
|
Reference in New Issue
Block a user