From a32d5264384fae56d5f7094368c626dfd8fbf5c8 Mon Sep 17 00:00:00 2001 From: dP Date: Tue, 11 Apr 2023 01:31:15 +0400 Subject: [PATCH] Fix compilation on windows --- cm_changelog.txt | 8 ++++---- src/citymania/cm_command_log.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cm_changelog.txt b/cm_changelog.txt index 88b7e375..26dd3e7e 100644 --- a/cm_changelog.txt +++ b/cm_changelog.txt @@ -74,18 +74,18 @@ This is usable for any OpenTTD servers == CHANGELOG == -*** 13.1 (10 Apr 2022) *** +*** 13.1 (11 Apr 2022) *** - Show building preview when funding industries. - Show industry production on the minimap on high zoom levels in IMBA mode. - Added two more zoom levels to the minimap. - Improved performance of the UI for about 20% (ported from JGRPP). - Show cargo and industry type IDs in industry chains window in developer mode. -- Added cmgamestats console command to show the total number of vehicles in the game. +- Added `cmgamestats` console command to show the total number of vehicles in the game. - Added a server lag counter in the status bar (when show APM is enabled). - Improved how regular advertisement tracks stations. - Fixed crash when moving station blueprint outside the map area. -- Fixed crash in polyrail terraforming mode (#15) -- Fixed clients overlay +- Fixed crash in polyrail terraforming mode (#15). +- Fixed clients overlay. - Fixed shaded trees and graph background settings not being available in multiplayer. *** 13.0 (21 Feb 2023) *** diff --git a/src/citymania/cm_command_log.cpp b/src/citymania/cm_command_log.cpp index c2ae2626..7318e5b1 100644 --- a/src/citymania/cm_command_log.cpp +++ b/src/citymania/cm_command_log.cpp @@ -106,7 +106,7 @@ void ExecuteFakeCommands(Date date, DateFract date_fract) { void load_replay_commands(const std::string &filename, std::function error_func) { _fake_commands = {}; - FILE *f = std::fopen(filename.c_str(), "rb"); + FILE *f = fopen(filename.c_str(), "rb"); if (f == nullptr) { error_func(fmt::format("Cannot open file `{}`: {}", filename, std::strerror(errno)));