Don't record/send [move] with empty path

This commit is contained in:
Ali El Gariani 2009-03-07 20:28:32 +00:00
parent 2bc9dfe3a0
commit 759dc7db50

View file

@ -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;