Disable depth-buffer command if EnableDepthBuffer is disabled.
This commit is contained in:
@@ -51,6 +51,9 @@ namespace OpenRA.Mods.Common.Commands
|
|||||||
|
|
||||||
foreach (var command in commandHandlers)
|
foreach (var command in commandHandlers)
|
||||||
{
|
{
|
||||||
|
if (command.Key == "depth-buffer" && !w.Map.Grid.EnableDepthBuffer)
|
||||||
|
continue;
|
||||||
|
|
||||||
console.RegisterCommand(command.Key, this);
|
console.RegisterCommand(command.Key, this);
|
||||||
help.RegisterHelp(command.Key, command.Value.Description);
|
help.RegisterHelp(command.Key, command.Value.Description);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user