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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user