mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Changed the default number of sound buffers
Updated version number.
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
||||
;sfall configuration settings
|
||||
;v3.8.36
|
||||
;v3.8.36.1
|
||||
|
||||
[Main]
|
||||
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
||||
@@ -101,8 +101,8 @@ WorldMapTerrainInfo=0
|
||||
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
[Sound]
|
||||
;Sets the number of allowed simultaneous sound effects
|
||||
;Set to 0 to leave the default unchanged (i.e. 4). The maximum is 32
|
||||
NumSoundBuffers=0
|
||||
;Set to 0 to leave the default unchanged (i.e. 8). The maximum is 32
|
||||
NumSoundBuffers=8
|
||||
|
||||
;Set to 1 to allow attaching sound files to combat float messages
|
||||
AllowSoundForFloats=0
|
||||
@@ -520,7 +520,7 @@ BonusHtHDamageFix=1
|
||||
DisplayBonusDamage=0
|
||||
|
||||
;Modify the maximum number of animations allowed to run on a map. (Default is 32, and the maximum is 127)
|
||||
AnimationsAtOnceLimit=120
|
||||
AnimationsAtOnceLimit=64
|
||||
|
||||
;Set to 1 to remove the limits that stop the player rolling critical successes/misses in the first few days of game time
|
||||
RemoveCriticalTimelimits=0
|
||||
|
||||
@@ -1048,10 +1048,9 @@ void Sound::init() {
|
||||
};
|
||||
HookCalls(audioOpen_hook, audioOpenAddr);
|
||||
|
||||
int sBuff = IniReader::GetConfigInt("Sound", "NumSoundBuffers", 0);
|
||||
if (sBuff > 4) {
|
||||
SafeWrite8(0x451129, (sBuff > 32) ? (BYTE)32 : (BYTE)sBuff);
|
||||
}
|
||||
int sBuff = IniReader::GetConfigInt("Sound", "NumSoundBuffers", 8);
|
||||
if (sBuff < 8) sBuff = 8; // new default
|
||||
SafeWrite8(0x451129, (sBuff > 32) ? (BYTE)32 : (BYTE)sBuff);
|
||||
|
||||
if (IniReader::GetConfigInt("Sound", "AllowSoundForFloats", 0)) {
|
||||
HookCall(0x42B7C7, combatai_msg_hook); // copy msg
|
||||
|
||||
+2
-2
@@ -25,6 +25,6 @@
|
||||
#define VERSION_MAJOR 3
|
||||
#define VERSION_MINOR 8
|
||||
#define VERSION_BUILD 36
|
||||
#define VERSION_REV 0
|
||||
#define VERSION_REV 1
|
||||
|
||||
#define VERSION_STRING "3.8.36"
|
||||
#define VERSION_STRING "3.8.36.1"
|
||||
|
||||
Reference in New Issue
Block a user