From 897bf798547eaa2f970bc9f75ac57c204760dd95 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 20 Jul 2017 22:52:01 +0300 Subject: [PATCH] Swap enable/disable logic for SetDisableGravity --- CreatureMethods.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CreatureMethods.h b/CreatureMethods.h index 29573ba..4c0c1f9 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -920,16 +920,16 @@ namespace LuaCreature /** * Makes the [Creature] able to fly if enabled. * - * @param bool enable = true + * @param bool disable */ int SetDisableGravity(lua_State* L, Creature* creature) { - bool enable = Eluna::CHECKVAL(L, 2, true); + bool disable = Eluna::CHECKVAL(L, 2); #ifdef TRINITY - creature->SetDisableGravity(!enable); + creature->SetDisableGravity(disable); #else - creature->SetLevitate(enable); + creature->SetLevitate(disable); #endif return 0; }