Don't ask the animation engine to march a unit in place,
...just skip its turn
This commit is contained in:
parent
ad25444dc7
commit
8efacd2cb2
1 changed files with 1 additions and 1 deletions
|
@ -1184,7 +1184,7 @@ WML_HANDLER_FUNCTION(move_units_fake, /*event_info*/, cfg)
|
|||
for(size_t step = 1; step < longest_path; ++step) {
|
||||
DBG_WML << "Doing step " << step << "...\n";
|
||||
for(size_t un = 0; un < num_units; ++un) {
|
||||
if(step >= paths[un].size())
|
||||
if(step >= paths[un].size() || paths[un][step - 1] == paths[un][step])
|
||||
continue;
|
||||
DBG_WML << "Moving unit " << un << ", doing step " << step << '\n';
|
||||
path_step[0] = paths[un][step - 1];
|
||||
|
|
Loading…
Add table
Reference in a new issue