CSM: Don't create the client script environment if CSM is disabled (#7874)
authorParamat <paramat@users.noreply.github.com>
Sat, 24 Nov 2018 10:41:11 +0000 (10:41 +0000)
committerGitHub <noreply@github.com>
Sat, 24 Nov 2018 10:41:11 +0000 (10:41 +0000)
commit2e37ee956530b7cd310e0d6cfb8ce3cd8f6973e6
tree4f607e1f226fa169c2bd98de531b62cba4de3260
parenta969635322576218312be3e32e5b4fcb0359ac05
CSM: Don't create the client script environment if CSM is disabled (#7874)

Use the CSM death formspec when CSM is enabled and use the engine death formspec when CSM is disabled.
Move the CSM death formspec code to a dedicated file.
builtin/client/death_formspec.lua [new file with mode: 0644]
builtin/client/init.lua
src/client.cpp
src/client.h
src/clientenvironment.cpp
src/game.cpp
src/network/clientpackethandler.cpp