diff --git a/GameVersion.cpp b/GameVersion.cpp index 0791f4d4..a5c58655 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -55,8 +55,8 @@ #endif -CHAR8 czVersionNumber[16] = { "Build 20.08.01" }; //YY.MM.DD +CHAR8 czVersionNumber[16] = { "Build 20.10.16" }; //YY.MM.DD CHAR16 zTrackingNumber[16] = { L"Z" }; -CHAR16 zRevisionNumber[16] = { L"Revision 8875" }; +CHAR16 zRevisionNumber[16] = { L"Revision 8900" }; // SAVE_GAME_VERSION is defined in header, change it there diff --git a/Strategic/Assignments.cpp b/Strategic/Assignments.cpp index dd49db9c..b137df75 100644 --- a/Strategic/Assignments.cpp +++ b/Strategic/Assignments.cpp @@ -5646,18 +5646,19 @@ void HandleRepairBySoldier( SOLDIERTYPE *pSoldier ) bRepairing = TRUE; } - // if nothing got repaired or cleaned, there's a problem - if ( ubRepairPtsUsed == 0 && ubCleaningPtsUsed == 0 ) - { - // he can't repair anything because he doesn't have enough skill! - AssignmentAborted( pSoldier, INSUF_REPAIR_SKILL ); - } // nothing more to do? - else if ( !bCleaning && !bRepairing ) + if ( !bCleaning && !bRepairing ) { AssignmentDone( pSoldier, TRUE, TRUE ); StopTimeCompression(); } + // if nothing got repaired or cleaned, there's a problem + else if (ubRepairPtsUsed == 0 && ubCleaningPtsUsed == 0) + { + // he can't repair anything because he doesn't have enough skill! + AssignmentAborted(pSoldier, INSUF_REPAIR_SKILL); + StopTimeCompression(); + } } BOOLEAN IsItemRepairable(SOLDIERTYPE* pSoldier, UINT16 usItem, INT16 bStatus, INT16 bThreshold )