burning buildings, gives burning sound if selected

This commit is contained in:
johns 2000-04-26 23:03:50 +00:00
parent e4acb081e3
commit ee3df18872

View file

@ -1093,6 +1093,9 @@ global void UIHandleButtonUp(int b)
if( Selected[0]->Command.Action==UnitActionBuilded ) {
//if( Selected[0]->Constructed )
PlayUnitSound(Selected[0],VoiceBuilding);
} else if( Selected[0]->Burning ) {
// FIXME: use GameSounds.Burning
PlayGameSound(SoundIdForName("burning"),MaxSampleVolume);
} else if( Selected[0]->Player==ThisPlayer
|| Selected[0]->Player->Race==PlayerRaceNeutral ) {
PlayUnitSound(Selected[0],VoiceSelected);