mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 23:26:34 +00:00
(svn r2071) - Feature: [ 1168743 ] save command for console: "save <filename>" to save a game (pkirchhofer)
This commit is contained in:
parent
b909a1f775
commit
67d2ada020
@ -150,7 +150,7 @@ static void SaveMap(const char *filename)
|
||||
{
|
||||
char buf[200];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s%s%s.sav", _path.save_dir, PATHSEP, filename);
|
||||
snprintf(buf, lengthof(buf), "%s%s%s.sav", _path.save_dir, PATHSEP, filename);
|
||||
IConsolePrint(_iconsole_color_default, "Saving map...");
|
||||
|
||||
if (SaveOrLoad(buf, SL_SAVE) != SL_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user