From: bones_was_here Date: Thu, 21 Mar 2024 07:10:40 +0000 (+1000) Subject: Add engine extension check: fullspawndata X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=14c8e2c72f69144f5896da43c9cdcbc8bbd9631f Add engine extension check: fullspawndata This one isn't supported by checkextension(). --- diff --git a/qcsrc/common/checkextension.qc b/qcsrc/common/checkextension.qc index 3e1a69f00..9e5315957 100644 --- a/qcsrc/common/checkextension.qc +++ b/qcsrc/common/checkextension.qc @@ -45,6 +45,9 @@ void CheckEngineExtensions(void) // DP_QC_NUDGEOUTOFSOLID fixes many cases WarpZoneLib_MoveOutOfSolid() can't, usually in less CPU time nudgeoutofsolid = WarpZoneLib_MoveOutOfSolid; } + + if (!world.fullspawndata) + LOG_WARN("Engine lacks entity fullspawndata, on Quake 3 maps some entities will malfunction."); #endif #ifdef GAMEQC diff --git a/qcsrc/server/main.qc b/qcsrc/server/main.qc index a6a771795..72e3dac3d 100644 --- a/qcsrc/server/main.qc +++ b/qcsrc/server/main.qc @@ -436,6 +436,7 @@ void SV_OnEntityPreSpawnFunction(entity this) * Avoids the need to declare fields just to read them once :) * * Returns the last instance of the field to match DarkPlaces behaviour. + * * Path support: converts \ to / and tests the file if a third (bool, true) arg is passed. * Returns string_null if the entity does not have the field, or the file is not in the VFS. * @@ -445,11 +446,8 @@ string GetField_fullspawndata(entity e, string f, ...) { string v = string_null; - if (!e.fullspawndata) - { - //LOG_WARNF("^1EDICT %s (classname %s) has no fullspawndata, engine lacks support?", ftos(num_for_edict(e)), e.classname); + if (!e.fullspawndata) // Engine lacks support, warning spam in CheckEngineExtensions() return v; - } if (strstrofs(e.fullspawndata, "//", 0) >= 0) {