From 528c7217afb7037820c6a1b331dcca1fc504f719 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Mon, 25 Apr 2005 22:50:25 +0000 Subject: bugfix: this have to be a copy of the listener origin (I hope this solves the lwjgl openal problem) --- src/jake2/sound/lwjgl/Channel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jake2/sound/lwjgl/Channel.java b/src/jake2/sound/lwjgl/Channel.java index c136331..722668f 100644 --- a/src/jake2/sound/lwjgl/Channel.java +++ b/src/jake2/sound/lwjgl/Channel.java @@ -3,7 +3,7 @@ * * Copyright (C) 2003 * - * $Id: Channel.java,v 1.2 2004-12-23 00:52:12 cawe Exp $ + * $Id: Channel.java,v 1.3 2005-04-25 22:50:25 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -221,7 +221,9 @@ public class Channel { sourceId = ch.sourceId; switch (ch.type) { case Channel.LISTENER: - sourceOrigin = listenerOrigin; + sourceOrigin.put(0, listenerOrigin.get(0)); + sourceOrigin.put(1, listenerOrigin.get(1)); + sourceOrigin.put(2, listenerOrigin.get(2)); break; case Channel.DYNAMIC: CL_ents.GetEntitySoundOrigin(ch.entnum, entityOrigin); -- cgit v1.2.3