diff --git a/Aquaria/SceneEditor.cpp b/Aquaria/SceneEditor.cpp index ca6aea6..962638a 100644 --- a/Aquaria/SceneEditor.cpp +++ b/Aquaria/SceneEditor.cpp @@ -3386,7 +3386,7 @@ void SceneEditor::update(float dt) else if (cursorOffset.x < oldPosition.x-10) right = false; else - noSide++; + noSide = 1; if (cursorOffset.y > oldPosition.y+10) down = true; else if (cursorOffset.y < oldPosition.y-10) diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index d847a50..c2b6c04 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -10409,7 +10409,7 @@ static const struct { #undef MK_ALIAS #define MK_FUNC(base, getter, prefix, suffix) luaRegister(prefix##_##suffix), #define MK_STR(s) #s -#define MK_ALIAS(prefix, suffix, alias) {MK_STR(prefix)"_"MK_STR(alias), l_##prefix##_##suffix}, +#define MK_ALIAS(prefix, suffix, alias) {MK_STR(prefix) "_" MK_STR(alias), l_##prefix##_##suffix}, EXPAND_FUNC_PROTOTYPES