Bug Tracker – Full Text Bug Listing

Bug 1280

Summary: Door open sound plays after door close when opened by another player
Product: Odamex Reporter: Nick <stlaurent.nicholas>
Component: ClientAssignee: Odamex Bug Reporter <odamex-bug-reporter>
Status: NEW ---    
Severity: enhancement CC: nauty.nautilus, odamex-bug-reporter
Priority: P5    
Version: 0.8.x   
Hardware: All   
OS: Other   
Attachments: demo showing the bug

Description Nick 2019-03-29 12:45:10 UTC
Created attachment 574 [details]
demo showing the bug

When another player opens a door the door open sound will play after it closes.
Comment 1 Nautilus 2019-07-02 11:47:18 UTC
Fixed the bug (for now).

In an online game, a new door object is spawned after a door is destroyed when updating the sector snapshot. 
I added a conditional statement to check whether the door's status is "finished," preventing a new door from spawning if it is.

Here's the commit: https://github.com/vonalogue/odamex/commit/e66d67595eb03e2c02976bfd05e79a23af801b3a#diff-9efab2399c7c560b34de477b9aa0a465