[odamex-bug-reporter] [Bug 135] Various sounds are played multiple times at once

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Fri, 03 Jun 2011 04:09:40 +0000

http://odamex.net/bugs/show_bug.cgi?id=135

--- Comment #31 from Dr. Sean <grandpachuck187@xxxxxxxxx> 2011-06-03 04:09:40 
UTC ---
Created attachment 262
  --> http://odamex.net/bugs/attachment.cgi?id=262
Fixes duplicate missile sound issues

Background:
There are a couple of causes of the duplicate sounds from missiles.  The first
is that the client calls P_ExplodeMissile() several times either directly or
through P_CheckMissile(), which would call P_ExplodeMissile() if the player was
standing too close to a wall/thing.  Another bug hampering earlier efforts was
the fact that when a missile is fired too close to a wall/thing, the server
generates the missile and puts it in the back of the queue to notify players. 
It then immediately sends players notification to explode the missile. 
Unfortunately because of queuing, players didn't know about the missile yet
when they received the message to explode the missile, resulting in no
explosion sound if someone were to fix the first bug alone.

Patch:
When P_CheckMissile notices that a missile will be fired directly into a
wall/thing, it directly notifies players about the missile spawning instead of
queuing it.

Check that only the server is calling P_ExplodeMissile() in p_mobj.cpp.

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: