(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
This commit is contained in:
@@ -27,6 +27,8 @@
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "aystar.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
/**
|
||||
* This looks in the hash whether a node exists in the closed list.
|
||||
* @param node Node to search.
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include "../follow_track.hpp"
|
||||
#include "aystar.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
static const uint NPF_HASH_BITS = 12; ///< The size of the hash used in pathfinding. Just changing this value should be sufficient to change the hash size. Should be an even value.
|
||||
/* Do no change below values */
|
||||
static const uint NPF_HASH_SIZE = 1 << NPF_HASH_BITS;
|
||||
|
@@ -13,6 +13,8 @@
|
||||
#include "../../core/alloc_func.hpp"
|
||||
#include "queue.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
|
||||
/*
|
||||
* Binary Heap
|
||||
|
@@ -15,6 +15,8 @@
|
||||
#include "../../ship.h"
|
||||
#include "../../core/random_func.hpp"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
struct RememberData {
|
||||
uint16 cur_length;
|
||||
byte depth;
|
||||
|
@@ -19,6 +19,8 @@
|
||||
#include "../../viewport_func.h"
|
||||
#include "../../newgrf_station.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
#define DEBUG_YAPF_CACHE 0
|
||||
|
||||
#if DEBUG_YAPF_CACHE
|
||||
|
@@ -14,6 +14,8 @@
|
||||
#include "yapf_node_road.hpp"
|
||||
#include "../../roadstop_base.h"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
|
||||
template <class Types>
|
||||
class CYapfCostRoadT
|
||||
|
@@ -15,6 +15,8 @@
|
||||
#include "yapf.hpp"
|
||||
#include "yapf_node_ship.hpp"
|
||||
|
||||
#include "../../safeguards.h"
|
||||
|
||||
/** Node Follower module of YAPF for ships */
|
||||
template <class Types>
|
||||
class CYapfFollowShipT
|
||||
|
Reference in New Issue
Block a user