mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Fix power gen fan sound
* Stop fan sound when switching sector * Start fan sound when loading a save where current sector is power gen sector
This commit is contained in:
@@ -2996,6 +2996,15 @@ BOOLEAN EnterSector( INT16 sSectorX, INT16 sSectorY, INT8 bSectorZ )
|
||||
|
||||
#ifdef JA2UB
|
||||
//Ja25 No meanwhiles
|
||||
// But DO check if powergen fan sound needs to be restarted
|
||||
extern UINT32 SECTOR_FAN_X;
|
||||
extern UINT32 SECTOR_FAN_Y;
|
||||
extern UINT32 SECTOR_FAN_Z;
|
||||
|
||||
if (gWorldSectorX == SECTOR_FAN_X && gWorldSectorY == SECTOR_FAN_Y && gbWorldSectorZ == SECTOR_FAN_Z)
|
||||
{
|
||||
HandlePowerGenFanSoundModification();
|
||||
}
|
||||
#else
|
||||
if ( AreInMeanwhile( ) == FALSE )
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user