openttd updated to 1.5.0-beta2

--HG--
branch : openttd
This commit is contained in:
Pavel Stupnikov
2015-03-01 00:30:53 +03:00
parent 0abb47ce90
commit d201932121
682 changed files with 26103 additions and 16553 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: script_log.cpp 23632 2011-12-19 21:05:25Z truebrain $ */
/* $Id: script_log.cpp 26509 2014-04-25 15:40:32Z rubidium $ */
/*
* This file is part of OpenTTD.
@@ -14,6 +14,9 @@
#include "../../core/alloc_func.hpp"
#include "../../debug.h"
#include "../../window_func.h"
#include "../../string_func.h"
#include "../../safeguards.h"
/* static */ void ScriptLog::Info(const char *message)
{
@@ -51,7 +54,7 @@
/* Free last message, and write new message */
free(log->lines[log->pos]);
log->lines[log->pos] = strdup(message);
log->lines[log->pos] = stredup(message);
log->type[log->pos] = level;
/* Cut string after first \n */