- Timestamp:
- Oct 29, 2019, 11:20:45 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/EnableRendering.cs
r325 r359 13 13 14 14 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 15 try { 16 if (_params.Count != 1) { 17 SdtdConsole.Instance.Output ("Current state: " + MapRendering.MapRendering.renderingEnabled); 18 return; 19 } 15 if (_params.Count != 1) { 16 SdtdConsole.Instance.Output ("Current state: " + MapRendering.MapRendering.renderingEnabled); 17 return; 18 } 20 19 21 MapRendering.MapRendering.renderingEnabled = _params [0].Equals ("1"); 22 SdtdConsole.Instance.Output ("Set live map rendering to " + _params [0].Equals ("1")); 23 } catch (Exception e) { 24 Log.Out ("Error in EnableRendering.Run: " + e); 25 } 20 MapRendering.MapRendering.renderingEnabled = _params [0].Equals ("1"); 21 SdtdConsole.Instance.Output ("Set live map rendering to " + _params [0].Equals ("1")); 26 22 } 27 23 }
Note:
See TracChangeset
for help on using the changeset viewer.