Skip to content

Commit

Permalink
Use general on/off key for AI replacement option
Browse files Browse the repository at this point in the history
  • Loading branch information
speed2 authored and PhilipJFryFAF committed Dec 23, 2018
1 parent 5ee3674 commit f9fa649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/aibrain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3429,7 +3429,7 @@ AIBrain = Class(moho.aibrain_methods) {

AbandonedByPlayer = function(self)
if not IsGameOver() then
if ScenarioInfo.Options.AIReplacement == 'AIReplacementOn' then
if ScenarioInfo.Options.AIReplacement == 'On' then
ForkThread(function()
local oldName = ArmyBrains[self:GetArmyIndex()].Nickname

Expand Down
4 changes: 2 additions & 2 deletions lua/ui/lobby/lobbyOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ globalOpts = {
{
text = "<LOC _On>On",
help = "<LOC aireplace_0003>If a player disconnects and the ACU is still active, an AI will be created to take control of units that belonged to the player who disconnected.",
key = 'AIReplacementOn',
key = 'On',
},
{
text = "<LOC _Off>Off",
help = "<LOC aireplace_0004>A disconnected player will cause the destruction of their units based on share conditions.",
key = 'AIReplacementOff',
key = 'Off',
},
},
},
Expand Down

0 comments on commit f9fa649

Please sign in to comment.