1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Apply some refactoring

This commit is contained in:
Christian F. Coors
2017-10-03 00:00:32 +02:00
committed by Michael Steenbeek
parent 386a399a51
commit 06afeeda9a
60 changed files with 221 additions and 292 deletions

View File

@@ -235,8 +235,7 @@ void screenshot_giant()
// Get a free screenshot path
char path[MAX_PATH];
sint32 index;
if ((index = screenshot_get_next_path(path, MAX_PATH)) == -1) {
if (screenshot_get_next_path(path, MAX_PATH) == -1) {
log_error("Giant screenshot failed, unable to find a suitable destination path.");
context_show_error(STR_SCREENSHOT_FAILED, STR_NONE);
return;