Don't force AltSounds on PC-Shareware content but still must bail out on missing sounds using a small hack. Still gives a better sound palette than AltSounds
This commit is contained in:
parent
6fe5bee78a
commit
7b08964f78
|
@ -3,6 +3,7 @@ D2X-Rebirth Changelog
|
|||
20110604
|
||||
--------
|
||||
main/lighting.c: Since set_dynamic_light() is not necessarily processed each frame, added own counter for delayed precession of vertex-clight calculation; Added possibility to page in a bitmap in case an object which has never been rendered before is supposed to cast light visible by the player
|
||||
main/digiobj.c, main/piggy.c: Don't force AltSounds on PC-Shareware content but still must bail out on missing sounds using a small hack. Still gives a better sound palette than AltSounds
|
||||
|
||||
20110601
|
||||
--------
|
||||
|
|
|
@ -88,6 +88,10 @@ int digi_xlat_sound(int soundno)
|
|||
return -1;
|
||||
}
|
||||
|
||||
// HACK: Sound table in PC Shareware is incomplete. Instead of defining exceptions all over our code just bail out here and play no sound instead
|
||||
if (is_SHAREWARE && Sounds[soundno] == 255)
|
||||
return -1;
|
||||
|
||||
Assert(Sounds[soundno] != 255); //if hit this, probably using undefined sound
|
||||
|
||||
return Sounds[soundno];
|
||||
|
|
|
@ -792,7 +792,7 @@ int read_hamfile()
|
|||
{
|
||||
GameArg.GfxHiresGFXAvailable = 0;
|
||||
//GameArg.GfxHiresFNTAvailable = 0; // fonts are in the hog
|
||||
GameArg.SysLowMem = 1;
|
||||
//GameArg.SysLowMem = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue