Bug Tracker – Bug 1280

Door open sound plays after door close when opened by another player

Last modified: 2019-07-02 11:47:18 CDT
Bug 1280 - Door open sound plays after door close when opened by another player
Summary: Door open sound plays after door close when opened by another player
Status: NEW
Alias: None
Product: Odamex
Classification: Unclassified
Component: Client (show other bugs)
Version: 0.8.x
Hardware: All Other
: P5 enhancement
Assignee: Odamex Bug Reporter
URL:
Depends on:
Blocks:
 
Reported: 2019-03-29 12:45 CDT by Nick
Modified: 2019-07-02 11:47 CDT (History)
2 users (show)

See Also:

Attachments

demo showing the bug (141.86 KB, application/octet-stream)
2019-03-29 12:45 CDT, Nick
Details
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2019-03-29 12:45:10 CDT
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 CDT
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