]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progsvm.h
forbid world writes after precache stage (without using sv.state, instead prog->allow...
[xonotic/darkplaces.git] / progsvm.h
index 0884945840ba62a1d5a555b6c734056767b16527..d86b0b648b985e331173b4e4fd1165fedf73e7ae 100644 (file)
--- a/progsvm.h
+++ b/progsvm.h
@@ -328,6 +328,10 @@ typedef struct prvm_prog_s
        float                           *time;
        float                           _time;
 
+       // allow writing to world entity fields, this is set by server init and
+       // cleared before first server frame
+       qboolean                        allowworldwrites;
+
        // name of the prog, e.g. "Server", "Client" or "Menu" (used for text output)
        char                            *name; // [INIT]