mirror of https://github.com/OpenRCT2/OpenRCT2.git
Save track designs as td6 file
This commit is contained in:
parent
9d1ae9b576
commit
79a85cd659
|
@ -903,7 +903,11 @@ static void window_loadsave_select(rct_window *w, const char *path)
|
|||
break;
|
||||
case (LOADSAVETYPE_SAVE | LOADSAVETYPE_TRACK) :
|
||||
{
|
||||
int success = track_design_save_to_file(path);
|
||||
char *p = _strdup(path);
|
||||
path_set_extension(p, "td6");
|
||||
int success = track_design_save_to_file(p);
|
||||
free(p);
|
||||
|
||||
if (success) {
|
||||
window_close_by_class(WC_LOADSAVE);
|
||||
window_loadsave_invoke_callback(MODAL_RESULT_OK);
|
||||
|
|
Loading…
Reference in New Issue