mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-22 03:46:55 +01:00
(svn r26503) -Fix: compilation error with full debug build
This commit is contained in:
parent
781dd48949
commit
2e493fa806
@ -13,6 +13,7 @@
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
#include "core/alloc_func.hpp"
|
#include "core/alloc_func.hpp"
|
||||||
#include "water_map.h"
|
#include "water_map.h"
|
||||||
|
#include "string_func.h"
|
||||||
|
|
||||||
#include "safeguards.h"
|
#include "safeguards.h"
|
||||||
|
|
||||||
@ -84,7 +85,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add,
|
|||||||
if (x >= MapSizeX() || y >= MapSizeY()) {
|
if (x >= MapSizeX() || y >= MapSizeY()) {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
|
|
||||||
snprintf(buf, lengthof(buf), "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed",
|
seprintf(buf, lastof(buf), "TILE_ADD(%s) when adding 0x%.4X and 0x%.4X failed",
|
||||||
exp, tile, add);
|
exp, tile, add);
|
||||||
#if !defined(_MSC_VER) || defined(WINCE)
|
#if !defined(_MSC_VER) || defined(WINCE)
|
||||||
fprintf(stderr, "%s:%d %s\n", file, line, buf);
|
fprintf(stderr, "%s:%d %s\n", file, line, buf);
|
||||||
|
Loading…
Reference in New Issue
Block a user