Fix condition for checking return value of play_sound() 41/295741/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 13 Jul 2023 06:11:11 +0000 (15:11 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 13 Jul 2023 06:15:47 +0000 (15:15 +0900)
commita71f3c508dc67a058feac1dc00d0dcda3cbe8c91
treef920dd85fb665b5770dc1f00b364d29a61648741
parent5aff1a7a4c2f12e8d64739376659d28969d404db
Fix condition for checking return value of play_sound()

- Issue:
sttd_server_start() did not progress even though all behavior is
properly worked.

- Solution:
play_start_sound_for_uid() return true if start sound is playing.
However, previous code uses this return value reversely. So, the
sttd_server_start() worked inproperly.
To solve this issue, this patch fixes the condition properly. Through
this patch, sttd_server_start() will work properly.

Change-Id: Iba90d239b917182fbffea54cb526ebe5629262a7
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/sttd_server.c