mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Sound Environment Mode: fixed an issue that caused building sound environments to fail when the arguments of the Sound Environment thing had unexpected values.
This commit is contained in:
parent
751439ed0e
commit
cdce5c0a8b
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
|
|||
for(int i = 0; i < soundenvironmenthings.Count; i++)
|
||||
{
|
||||
//mxd. Make sure same environments use the same color
|
||||
int seid = (soundenvironmenthings[i].Args[0] << 8) + soundenvironmenthings[i].Args[1];
|
||||
int seid = (Math.Abs(soundenvironmenthings[i].Args[0])%256 << 8) + Math.Abs(soundenvironmenthings[i].Args[1])%256;
|
||||
secolor[soundenvironmenthings[i]] = distinctcolors[seid % distinctcolors.Count];
|
||||
senumber.Add(soundenvironmenthings[i], i + 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue