diff --git a/GameVersion.cpp b/GameVersion.cpp index 5fd9721e..31f170bf 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -23,12 +23,12 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" }; #else //RELEASE BUILD VERSION - INT16 zVersionLabel[256] = { L"Release v1.13.274" }; + INT16 zVersionLabel[256] = { L"Release v1.13.284" }; #endif -INT8 czVersionNumber[16] = { "Build 06.06.19" }; +INT8 czVersionNumber[16] = { "Build 06.06.21" }; INT16 zTrackingNumber[16] = { L"Z" }; diff --git a/Tactical/Soldier Create.cpp b/Tactical/Soldier Create.cpp index fdfbd623..cce3d9e8 100644 --- a/Tactical/Soldier Create.cpp +++ b/Tactical/Soldier Create.cpp @@ -130,16 +130,10 @@ void DecideToAssignSniperOrders( SOLDIERCREATE_STRUCT * pp ) if ( pp->bOrders == STATIONARY || pp->bOrders == ONGUARD ) { // 30% of anybody w/a scope and decent range being a sniper, 80% chance of a guy w/a sniper rifle being a sniper - if ( (GunRange(&pp->Inv[HANDPOS]) >= 40 && IsScoped(&pp->Inv[HANDPOS]) && Random(100) < 30) || ( Weapon[pp->Inv[HANDPOS].usItem].ubWeaponType == GUN_SN_RIFLE && Random(100) < 80 ) ) + if ( (GunRange(&pp->Inv[HANDPOS]) >= 40 && IsScoped(&pp->Inv[HANDPOS]) && Random(100) < 30) || ( Weapon[pp->Inv[HANDPOS].usItem].ubWeaponType == GUN_SN_RIFLE && IsScoped(&pp->Inv[HANDPOS]) && Random(100) < 80 ) ) { pp->bOrders = SNIPER; - if (pp->bAttitude == BRAVEAID) - pp->bAttitude = BRAVESOLO; - - if (pp->bAttitude == CUNNINGAID) - pp->bAttitude = CUNNINGSOLO; - DebugMsg ( TOPIC_JA2AI , DBG_LEVEL_3 , String("Sniper Created") ); } } diff --git a/TacticalAI/AIMain.cpp b/TacticalAI/AIMain.cpp index 63c8d81d..90c3c0c3 100644 --- a/TacticalAI/AIMain.cpp +++ b/TacticalAI/AIMain.cpp @@ -1089,11 +1089,15 @@ void FreeUpNPCFromTurning(SOLDIERTYPE *pSoldier, INT8 bLook) ActionDone(pSoldier); - if (bLook) + if ( bLook ) { - //HandleSight(pSoldier,SIGHT_LOOK | SIGHT_RADIO); // no interrupt possible + //HandleSight(pSoldier,SIGHT_LOOK | SIGHT_RADIO); // no interrupt possible } + if (pSoldier->bOrders == SNIPER ) + { + HandleSight(pSoldier,SIGHT_LOOK | SIGHT_RADIO); + } } }