File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ - (#6830 ) Fix unit/projectile/weapon debug component logging and drawing causing desyncs.
Original file line number Diff line number Diff line change 3939 end
4040end
4141
42- do
43-
44- -- upvalue for performance
45- local Random = Random
46-
47- local oldDrawCircle = _G .DrawCircle
48- _G .DrawCircle = function (position , diameter , color )
49-
50- -- cause a desync when players during non-ai games try and call this function separate from other players
51- if not ScenarioInfo .GameHasAIs then
52- Random ()
53- end
54-
55- oldDrawCircle (position , diameter , color )
56- end
57-
58- local oldDrawLine = _G .DrawLine
59- _G .DrawLine = function (a , b , color )
60-
61- -- cause a desync when players during non-ai games try and call this function separate from other players
62- if not ScenarioInfo .GameHasAIs then
63- Random ()
64- end
65-
66- oldDrawLine (a , b , color )
67- end
68-
69- local oldDrawLinePop = _G .DrawLinePop
70- _G .DrawLinePop = function (a , b , color )
71-
72- -- cause a desync when players during non-ai games try and call this function separate from other players
73- if not ScenarioInfo .GameHasAIs then
74- Random ()
75- end
76-
77- oldDrawLinePop (a , b , color )
78- end
79- end
80-
8142do
8243 -- do not allow command units to be given
8344 local oldChangeUnitArmy = _G .ChangeUnitArmy
You can’t perform that action at this time.
0 commit comments