From a15fed671fc50a2a32bdf693b53e1d634f697e20 Mon Sep 17 00:00:00 2001 From: proller Date: Tue, 20 Aug 2024 03:15:20 +0200 Subject: [PATCH] wip --- cmake-variants.yaml | 46 +++++++++++++++++++++++++++++++++++ src/network/serveropcodes.cpp | 6 ++--- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 cmake-variants.yaml diff --git a/cmake-variants.yaml b/cmake-variants.yaml new file mode 100644 index 000000000..f5826b8d3 --- /dev/null +++ b/cmake-variants.yaml @@ -0,0 +1,46 @@ +buildType: + default: debug + choices: + RelWithDebInfo: + short: RelWithDebInfo + long: Fast and debugable + buildType: RelWithDebInfo + debug: + short: Debug + long: Emit debug information + buildType: Debug + release: + short: Release + long: Optimize generated code + buildType: Release + + asan: + short: Asan + long: Instrument with Address Sanitizer + buildType: Debug + settings: + SANITIZE_ADDRESS: ON + tsan: + short: Tsan + long: Instrument with Thread Sanitizer + buildType: Debug + settings: + SANITIZE_THREAD: ON + msan: + short: Msan + long: Instrument with Memory Sanitizer + buildType: Debug + settings: + SANITIZE_MEMORY: ON + usan: + short: Ubsan + long: Instrument with UB Sanitizer + buildType: Debug + settings: + SANITIZE_UNDEFINED: ON + gperf: + short: Gperf + long: Gperf + buildType: Debug + settings: + ENABLE_GPERF: ON diff --git a/src/network/serveropcodes.cpp b/src/network/serveropcodes.cpp index 060dadbc9..a2f6233d6 100644 --- a/src/network/serveropcodes.cpp +++ b/src/network/serveropcodes.cpp @@ -179,7 +179,7 @@ const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES] = { "TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD", 0, true }, // 0x31 { "TOCLIENT_ACTIVE_OBJECT_MESSAGES", 0, true }, // 0x32 (may be sent as unrel over channel 1 too) { "TOCLIENT_HP", 0, true }, // 0x33 - { "TOCLIENT_MOVE_PLAYER", 0, true }, // 0x34 + { "TOCLIENT_MOVE_PLAYER", 0, false }, // 0x34 null_command_factory, // 0x35 { "TOCLIENT_FOV", 0, true }, // 0x36 { "TOCLIENT_DEATHSCREEN", 0, true }, // 0x37 @@ -196,8 +196,8 @@ const ClientCommandFactory clientCommandFactoryTable[TOCLIENT_NUM_MSG_TYPES] = { "TOCLIENT_INVENTORY_FORMSPEC", 0, true }, // 0x42 { "TOCLIENT_DETACHED_INVENTORY", 0, true }, // 0x43 { "TOCLIENT_SHOW_FORMSPEC", 0, true }, // 0x44 - { "TOCLIENT_MOVEMENT", 0, true }, // 0x45 - { "TOCLIENT_SPAWN_PARTICLE", 0, true }, // 0x46 + { "TOCLIENT_MOVEMENT", 0, false }, // 0x45 + { "TOCLIENT_SPAWN_PARTICLE", 0, false }, // 0x46 { "TOCLIENT_ADD_PARTICLESPAWNER", 0, true }, // 0x47 null_command_factory, // 0x48 { "TOCLIENT_HUDADD", 1, true }, // 0x49