diff --git a/Makefile b/Makefile index 7489064..dd94fed 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,6 @@ prepare_newlines: @find $(ZRINCLUDES) -name \*.inc -exec $(DOS2UNIX) "{}" \; prepare_builddir: - @echo "Creating build directory" @mkdir -p $(BUILDDIR) %.smx: %.sp diff --git a/src/zr/visualeffects/visualeffects.inc b/src/zr/visualeffects/visualeffects.inc index d815c71..3e6b9c0 100644 --- a/src/zr/visualeffects/visualeffects.inc +++ b/src/zr/visualeffects/visualeffects.inc @@ -147,10 +147,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati return; } - // Future code using protocol buffers (not tested). Enabling this will bump - // SourceMod version requirement to a snapshot, we don't want to do that - // until that branch is declared stable. - /*if (GetUserMessageType() == UM_Protobuf) + if (GetUserMessageType() == UM_Protobuf) { PbSetInt(hShake, "command", 0); PbSetFloat(hShake, "local_amplitude", amplitude); @@ -163,13 +160,7 @@ VEffectsShakeClientScreen(client, Float:amplitude, Float:frequency, Float:durati BfWriteFloat(hShake, amplitude); BfWriteFloat(hShake, frequency); BfWriteFloat(hShake, duration); - }*/ - - // Write shake information to message handle. - BfWriteByte(hShake, 0); - BfWriteFloat(hShake, amplitude); - BfWriteFloat(hShake, frequency); - BfWriteFloat(hShake, duration); + } // End usermsg and send to client. EndMessage();