Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dump map incorrectly #4427

Closed
DorpsGek opened this issue Jan 18, 2011 · 1 comment
Closed

dump map incorrectly #4427

DorpsGek opened this issue Jan 18, 2011 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

siqi opened the ticket and wrote:

When running openttd -D -d 1,
The program will not dump the game state into dmp_cmds_%08x_%08x.sav
Because openttd will generate a 64 * 64 map when it start, and then generate a new map according to openttd.cfg. It will dump the 64*64 map correctly, but it won't dump the new map.

in saveload.cpp
SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, bool threaded)
{
uint32 hdr[2];

/* An instance of saving is already active, so don't go saving again /
if (_ts.saveinprogress && mode == SL_SAVE) {
/
if not an autosave, but a user action, show error message */
if (!_do_autosave) ShowErrorMessage(STR_ERROR_SAVE_STILL_IN_PROGRESS, INVALID_STRING_ID, 0, 0);
return SL_OK;
}
........
}

The dump of new map will not dump because ts.saveinprogress == true.

Reported version: 1.0.5
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4427
@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r21833


This comment was imported from FlySpray: https://bugs.openttd.org/task/4427

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant