From 57b19425c12c9eb03d6d0bbc9aaae49f75f2a522 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Mon, 4 Mar 2024 18:45:06 -0800 Subject: [PATCH] NSIO: Give it an empty ParentUpdate() to work around StartFrame() calling a null function on them. --- src/shared/NSIO.h | 3 +++ src/shared/NSIO.qc | 14 ++++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/shared/NSIO.h b/src/shared/NSIO.h index 65ef6bd7..e6522017 100644 --- a/src/shared/NSIO.h +++ b/src/shared/NSIO.h @@ -99,6 +99,9 @@ public: Input is the identifier of an output. */ nonvirtual bool CheckOutput(string); + /** Called when we need to re-align the entity to our parent entity. */ + virtual void ParentUpdate(void); + /* save game related methods */ /** Saves a floating point key/value pair to a filehandle. */ nonvirtual void SaveFloat(float,string,float); diff --git a/src/shared/NSIO.qc b/src/shared/NSIO.qc index 9cdfe66b..6dd3864f 100644 --- a/src/shared/NSIO.qc +++ b/src/shared/NSIO.qc @@ -252,11 +252,11 @@ NSIO::Input(entity eAct, string strInput, string strData) break; default: if (strData != "") { - EntWarning("Receives unknown input %S from %d with data %S", - strInput, num_for_edict(eAct), strData); + EntWarning("Receives unknown input %S from %s (%d) with data %S", + strInput, eAct.classname, num_for_edict(eAct), strData); } else { - EntWarning("Receives unknown input %S from %d", - strInput, num_for_edict(eAct)); + EntWarning("Receives unknown input %S from %s (%d)", + strInput, eAct.classname, num_for_edict(eAct)); } } } @@ -705,6 +705,12 @@ void NSIO::TransitionComplete( void ) { /* this is where we can handle anything post-loading */ } + +void +NSIO::ParentUpdate(void) +{ + +} #endif void