NSIO: Give it an empty ParentUpdate() to work around StartFrame() calling a null function on them.

This commit is contained in:
Marco Cawthorne 2024-03-04 18:45:06 -08:00
parent 37ab385bcf
commit 57b19425c1
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 13 additions and 4 deletions

View File

@ -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);

View File

@ -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