mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
- bugfix for multi-build discovered during testing (left a break statement when shouldn't have)
This commit is contained in:
parent
d9e7dcc69a
commit
b778098d13
@ -1093,7 +1093,6 @@ Unit * UnitUpdater::findPeerUnitBuilder(Unit *unit) {
|
||||
if(bct != NULL) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
//if(command->getPos() == peerCommand->getPos()) {
|
||||
if(command->getStateValue() == peerUnit->getId()) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
@ -1109,11 +1108,10 @@ Unit * UnitUpdater::findPeerUnitBuilder(Unit *unit) {
|
||||
if(prct != NULL) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
if(unit != peerUnit && command->getStateValue() == peerUnit->getId()) {
|
||||
if(unit->getId() != peerUnit->getId() && command->getStateValue() == peerUnit->getId()) {
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
||||
firstLinkedPeerRepairer = peerUnit;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1122,7 +1120,7 @@ Unit * UnitUpdater::findPeerUnitBuilder(Unit *unit) {
|
||||
}
|
||||
}
|
||||
|
||||
if(foundUnitBuilder == NULL) {
|
||||
if(foundUnitBuilder == NULL && firstLinkedPeerRepairer != NULL) {
|
||||
foundUnitBuilder = firstLinkedPeerRepairer;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user