entity music_trigger;
// FIXME also control bgmvolume here, to not require a target_music for the default track.
-.float state;
+.int state;
.float lastvol;
void TargetMusic_Advance()
void Ent_ReadTriggerMusic()
{
- float f;
- string s;
- f = ReadByte();
+ int f = ReadByte();
if(f & 4)
{
self.origin_x = ReadCoord();
self.volume = ReadByte() / 255.0;
self.fade_time = ReadByte() / 16.0;
self.fade_rate = ReadByte() / 16.0;
- s = self.noise;
+ string s = self.noise;
if(self.noise)
strunzone(self.noise);
self.noise = strzone(ReadString());