Refactor: remove references to class World from util and luastack. These are low-level modules that should not reference class World.
This commit is contained in:
@@ -33,11 +33,6 @@
|
||||
#include "spookyv2.hpp"
|
||||
|
||||
|
||||
enum WorldType {
|
||||
WORLD_TYPE_MASTER = 1,
|
||||
WORLD_TYPE_PREDICTIVE = 2,
|
||||
};
|
||||
|
||||
|
||||
namespace sv {
|
||||
|
||||
@@ -355,9 +350,6 @@ double distance_squared(double x1, double y1, double x2, double y2);
|
||||
// Make a LuaSourceVec with one element, for unit testing.
|
||||
LuaSourcePtr make_lua_source(const eng::string &code);
|
||||
|
||||
// Return true if the worldtype is authoritative.
|
||||
inline bool is_authoritative(WorldType t) { return (t == WORLD_TYPE_MASTER); }
|
||||
|
||||
// Remove items from a vector that are nullptr.
|
||||
template<class T>
|
||||
void remove_nullptrs(T &vec) {
|
||||
|
||||
Reference in New Issue
Block a user