ModDota / BugTracker

Listing bugs for Dota 2 Custom Games
9 stars 1 forks source link

SetCustomGameSetupTimeout( 0 ) causes the host being unable to pick hero #80

Open rossengeorgiev opened 7 years ago

rossengeorgiev commented 7 years ago

What happens

Host is unable to pick hero. Name doesn't appear on the top in the pick UI and pick/random buttons are greyed out.

Minimum lua code to replicate in addon_game_mode.lua

function Activate()
    GameRules:SetCustomGameSetupTimeout( 0 )
    GameRules:SetCustomGameSetupAutoLaunchDelay( 0 )
    GameRules:EnableCustomGameSetupAutoLaunch( false )
end

Expected

Host being able to pick hero

Workarounds

Having GameRules:SetCustomGameSetupTimeout( 1 ) fixes the problem