From c4db6f8f13a9194c2ae0616f0085f3923b349cce Mon Sep 17 00:00:00 2001 From: lalien Date: Mon, 5 Jun 2006 23:34:43 +0000 Subject: [PATCH] - manual reload play sound added git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@178 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- GameVersion.cpp | 2 +- JA2.vcproj | 4 ++-- Tactical/Weapons.cpp | 2 +- TacticalAI/AI All.h | 1 + TacticalAI/Attacks.cpp | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GameVersion.cpp b/GameVersion.cpp index 46d5a347..6100928f 100644 --- a/GameVersion.cpp +++ b/GameVersion.cpp @@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" }; #else //RELEASE BUILD VERSION - INT16 zVersionLabel[256] = { L"Release v1.13.177" }; + INT16 zVersionLabel[256] = { L"Release v1.13.178" }; #endif diff --git a/JA2.vcproj b/JA2.vcproj index ddfa91a3..555e6047 100644 --- a/JA2.vcproj +++ b/JA2.vcproj @@ -43,7 +43,7 @@ %d\r\n", Weapon[cnt].sLocknLoadSound); FilePrintf(hFile,"\t\t%d\r\n", Weapon[cnt].bBurstAP); FilePrintf(hFile,"\t\t%d\r\n", Weapon[cnt].bAutofireShotsPerFiveAP); - FilePrintf(hFile,"\t\t%d\r\n", Weapon[cnt].ManualReloadAPs); + FilePrintf(hFile,"\t\t%d\r\n", Weapon[cnt].APsToReloadManually); FilePrintf(hFile,"\t\t%d\r\n", Weapon[cnt].ManualReloadSound); FilePrintf(hFile,"\t\r\n"); } diff --git a/TacticalAI/AI All.h b/TacticalAI/AI All.h index 95863a17..ce939c80 100644 --- a/TacticalAI/AI All.h +++ b/TacticalAI/AI All.h @@ -94,5 +94,6 @@ #include "Queen Command.h" #include "Lighting.h" #include "environment.h" +#include "Sound Control.h" #endif \ No newline at end of file diff --git a/TacticalAI/Attacks.cpp b/TacticalAI/Attacks.cpp index d0486267..be6c2238 100644 --- a/TacticalAI/Attacks.cpp +++ b/TacticalAI/Attacks.cpp @@ -1876,7 +1876,7 @@ INT8 TryToReload( SOLDIERTYPE * pSoldier ) DeductPoints(pSoldier, Weapon[Item[(pObj)->usItem].ubClassIndex].APsToReloadManually, 0); - //PlayJA2Sample( Weapon[ Item[pObj->usItem].ubClassIndex ].ManualReloadSound, RATE_11025, SoundVolume( HIGHVOLUME, pSoldier->sGridNo ), 1, SoundDir( pSoldier->sGridNo ) ); + PlayJA2Sample( Weapon[ Item[pObj->usItem].ubClassIndex ].ManualReloadSound, RATE_11025, SoundVolume( HIGHVOLUME, pSoldier->sGridNo ), 1, SoundDir( pSoldier->sGridNo ) ); return TRUE; } //