]> git.lizzy.rs Git - minetest.git/commit
Re-order sound-related code (#12382)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Mon, 20 Jun 2022 19:56:12 +0000 (21:56 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jun 2022 19:56:12 +0000 (21:56 +0200)
commita463620edbe57071a7101297d33226507567ca73
tree342d433ca55f4e3d1826508c303f2e6229d503f1
parent0b41533763bc9f104a2da2e4191f4654b8d8dab4
Re-order sound-related code (#12382)

Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated
'fade' and 'pitch' values on server-side where only one was used anyway.
SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included.

Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the
future. Per-type version numbers are kept for now as a safety rope in a special case.
20 files changed:
src/client/content_cao.cpp
src/client/game.cpp
src/client/sound.h
src/gui/guiEngine.cpp
src/gui/guiEngine.h
src/itemdef.cpp
src/itemdef.h
src/network/clientpackethandler.cpp
src/nodedef.cpp
src/nodedef.h
src/script/common/c_content.cpp
src/script/common/c_content.h
src/script/lua_api/l_server.cpp
src/script/lua_api/l_sound.cpp
src/server.cpp
src/server.h
src/sound.h
src/tileanimation.cpp
src/tileanimation.h
src/unittest/test_nodedef.cpp