Warning: crashes! Confirmation dialog will also show estimated cost

This commit is contained in:
Sergii Pylypenko
2016-05-16 22:15:41 +03:00
parent e94afe86c3
commit e1258ab87a
5 changed files with 75 additions and 16 deletions

View File

@@ -26,6 +26,7 @@
#include "core/geometry_func.hpp"
#include "newgrf_debug.h"
#include "zoom_func.h"
#include "build_confirmation_func.h"
#include "widgets/misc_widget.h"
@@ -529,6 +530,10 @@ void ShowAboutWindow()
*/
void ShowEstimatedCostOrIncome(Money cost, int x, int y)
{
if (ConfirmationWindowEstimatingCost()) {
ConfirmationWindowSetEstimatedCost(cost);
return;
}
StringID msg = STR_MESSAGE_ESTIMATED_COST;
if (cost < 0) {