From d49ce751ba6f8f2eb171633cea30a1119935f8c7 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Thu, 11 Nov 2021 21:02:29 +0000 Subject: Miscellaneous fixes (#5320) * Protocol: update Abilities flags + Add Spectator handling * BioGen: move include * ClientHandle: rename Respawn packet dimension check flag * Make it clearer what it's doing. * ClientHandle: move ProcessProtocolIn calls to World * Player: remove some redundant initialisation * Player: UpdateCapabilities enables flight for spectators * Produce growth: improve comments * ClientHandle: run unload checks using delta time * Fix forgotten initialisation of time member --- src/Generating/BioGen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Generating') diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp index 74547800f..5e8f5dddc 100644 --- a/src/Generating/BioGen.cpp +++ b/src/Generating/BioGen.cpp @@ -5,7 +5,6 @@ #include "Globals.h" #include "BioGen.h" -#include #include "IntGen.h" #include "ProtIntGen.h" #include "../IniFile.h" @@ -1198,6 +1197,8 @@ std::unique_ptr cBiomeGen::CreateBiomeGen(cIniFile & a_IniFile, int a // Change to 1 to enable the perf test: #if 0 +#include + class cBioGenPerfTest { public: -- cgit v1.2.3