Don't record/send [move] with empty path
This commit is contained in:
parent
2bc9dfe3a0
commit
759dc7db50
1 changed files with 4 additions and 0 deletions
|
@ -297,6 +297,10 @@ void replay::add_countdown_update(int value, int team)
|
|||
|
||||
void replay::add_movement(const std::vector<map_location>& steps)
|
||||
{
|
||||
if(steps.empty()) { // no move, nothing to record
|
||||
return;
|
||||
}
|
||||
|
||||
config* const cmd = add_command();
|
||||
|
||||
config move;
|
||||
|
|
Loading…
Add table
Reference in a new issue