X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fmain.qc;h=d494050f060b025bb8fc6838ba16a0bf3d98096a;hp=e3f07b275c969a6dea7c9d6ff966f985d55f082c;hb=784ed7e054583264723e7638b3f6817a87cf3de7;hpb=c462a59f1d4d9ec5977a13ace77e8632cb003e3b diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index e3f07b275c..d494050f06 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -835,7 +835,7 @@ void CSQC_Ent_Update(float bIsNewEntity) #endif self.enttype = t; bool done = false; - FOREACH(Linked, it.m_id == t, LAMBDA( + FOREACH(LinkedEntities, it.m_id == t, LAMBDA( it.m_read(self, bIsNewEntity); done = true; break; @@ -1266,7 +1266,7 @@ void Net_WeaponComplain() // CSQC_Parse_TempEntity : Handles all temporary entity network data in the CSQC layer. // You must ALWAYS first acquire the temporary ID, which is sent as a byte. // Return value should be 1 if CSQC handled the temporary entity, otherwise return 0 to have the engine process the event. -float CSQC_Parse_TempEntity() +bool CSQC_Parse_TempEntity() { // Acquire TE ID int nTEID = ReadByte(); @@ -1274,6 +1274,10 @@ float CSQC_Parse_TempEntity() if (autocvar_developer_csqcentities) LOG_INFOF("CSQC_Parse_TempEntity() with nTEID=%d\n", nTEID); + FOREACH(TempEntities, it.m_id == nTEID, LAMBDA( + it.m_read(NULL, true); + return true; + )); switch (nTEID) { case TE_CSQC_MUTATOR: