diff --git a/src/linkage.cpp b/src/linkage.cpp index ba6a770..1be4151 100644 --- a/src/linkage.cpp +++ b/src/linkage.cpp @@ -157,6 +157,9 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) { } } + // refresh clients immediately + util.updateClients (); + if (game.is (GameFlags::Metamod)) { RETURN_META_VALUE (MRES_IGNORED, 0); } @@ -183,6 +186,9 @@ CR_EXPORT int GetEntityAPI (gamefuncs_t *table, int) { } } + // refresh clients immediately + util.updateClients (); + // clear the graph editor upon disconnect if (ent == graph.getEditor ()) { graph.setEditor (nullptr);