Add privileged desynced client global variables (#9138)

* Fix text setting in marker control

* Fix marker and bridge calculation game crashes, minor marker instruction code fixes

* Add privileged desynced client constant global variables

* Remove broken attempt to not initialize client vars on server

* Make @clientLocale variable non-constant, make @server and @client privileged
This commit is contained in:
ApsZoldat
2023-10-05 10:56:53 -04:00
committed by GitHub
parent 16488aeae4
commit 91d87e1dba
4 changed files with 35 additions and 9 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ public class LExecutor{
public Var var(int index){
//global constants have variable IDs < 0, and they are fetched from the global constants object after being negated
return index < 0 ? logicVars.get(-index) : vars[index];
return index < 0 ? logicVars.get(-index, privileged) : vars[index];
}
/** @return a Var from this processor, never a global constant. May be null if out of bounds. */