fix: 部署失败后不清除已占用格子 (#9111)

This commit is contained in:
Lancarus
2024-05-15 01:08:40 +08:00
committed by GitHub
parent 58b18c3782
commit 17fca4e1ea

View File

@@ -405,7 +405,8 @@ bool asst::BattleHelper::deploy_oper(
Point pre_loc = m_battlefield_opers.at(name);
Log.info("remove deploy failed oper", name, pre_loc);
m_battlefield_opers.erase(name);
m_used_tiles.erase(pre_loc);
// 擦除已使用干员,但是不擦除已使用格子
// m_used_tiles.erase(pre_loc);
}
m_used_tiles.emplace(loc, name);