v0.8.2a: fixes for various crashes

- added a safety check for when an amoked character dies
- added a safety check when ghouls die over pits
- mobs looking for a new enemy when aggroed on an invincible one
- made Tengu's 2nd phase jumping slightly more permissive
- fixed a logic error when placing enemies
- added a safety check in WndWandmaker
- added a safety sync check when playing a sample
This commit is contained in:
Evan Debenham
2020-08-13 17:43:01 -04:00
parent fc6a32058e
commit e51025de0c
7 changed files with 21 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ public enum Sample {
return play( id, volume, volume, pitch );
}
public long play( Object id, float leftVolume, float rightVolume, float pitch ) {
public synchronized long play( Object id, float leftVolume, float rightVolume, float pitch ) {
float volume = Math.max(leftVolume, rightVolume);
float pan = rightVolume - leftVolume;
if (enabled && ids.containsKey( id )) {