mirror of
https://github.com/glest/glest-source.git
synced 2025-08-24 08:52:49 +02:00
- see if this removes the command delay when issuing commands on idle units
This commit is contained in:
@@ -1257,7 +1257,7 @@ bool Unit::update() {
|
||||
if(currSkill->getClass() != scDie) {
|
||||
progress = 0.f;
|
||||
return_value = true;
|
||||
if(currSkill->getClass() == scStop) {
|
||||
if(currSkill->getClass() == scStop && this->anyCommand() == false) {
|
||||
return_value = false;
|
||||
uint32 framesSinceLastCheck = (game->getWorld()->getFrameCount() - this->getLastStopCommandCheckFrame());
|
||||
if(this->getLastStopCommandCheckFrame() <= 0 ||
|
||||
|
Reference in New Issue
Block a user