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:
@@ -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 )) {
|
||||
|
||||
Reference in New Issue
Block a user