release mouse button before auto-switching tools

This commit is contained in:
yvt 2013-11-18 19:55:27 +09:00
parent 3ea87ae671
commit fdf0af253f

View File

@ -618,6 +618,13 @@ namespace spades {
} }
if(!player->IsToolSelectable(player->GetTool())) { if(!player->IsToolSelectable(player->GetTool())) {
// release mouse button before auto-switching tools
winp.primary = false;
winp.secondary = false;
weapInput = winp;
net->SendWeaponInput(weapInput);
actualWeapInput = winp = player->GetWeaponInput();
// select another tool // select another tool
Player::ToolType t = player->GetTool(); Player::ToolType t = player->GetTool();
do{ do{