Disable depth-buffer command if EnableDepthBuffer is disabled.

This commit is contained in:
Paul Chote
2021-08-21 18:07:10 +01:00
committed by abcdefg30
parent 512dee0ac0
commit 8a587ddeab

View File

@@ -51,6 +51,9 @@ namespace OpenRA.Mods.Common.Commands
foreach (var command in commandHandlers)
{
if (command.Key == "depth-buffer" && !w.Map.Grid.EnableDepthBuffer)
continue;
console.RegisterCommand(command.Key, this);
help.RegisterHelp(command.Key, command.Value.Description);
}