From 80f2f49694f997327eae6bf651c9662ed344f383 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Fri, 21 Mar 2003 17:53:19 +0000 Subject: [PATCH] Disable command log, fixed bug --- src/editor/editloop.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp index 7779268c2..f2d3b8d37 100644 --- a/src/editor/editloop.cpp +++ b/src/editor/editloop.cpp @@ -49,6 +49,7 @@ #include "pud.h" #include "iolib.h" #include "iocompat.h" +#include "commands.h" #include "ccl.h" @@ -1654,12 +1655,6 @@ local void EditorCallbackMouse(int x, int y) } by += TileSizeY+2; } - - if (TheUI.InfoPanelX <= x && x <= TheUI.ButtonPanelX + 144 + TileSizeX - && TheUI.InfoPanelY <= y && y <= TheUI.ButtonPanelY + 100) { - ClearStatusLine(); - return; - } } // @@ -1703,6 +1698,7 @@ local void EditorCallbackMouse(int x, int y) DebugLevel3("On button %d\n" _C_ i); ButtonUnderCursor = i; CursorOn = CursorOnButton; + ClearStatusLine(); return; } @@ -1975,6 +1971,10 @@ global int EditorSavePud(const char *file) global void EditorMainLoop(void) { EventCallback callbacks; + int OldCommandLogDisabled; + + OldCommandLogDisabled = CommandLogDisabled; + CommandLogDisabled = 1; do { EditorMapLoaded = 0; @@ -2044,6 +2044,8 @@ global void EditorMainLoop(void) VideoUnlockScreen(); Invalidate(); } while (EditorMapLoaded); + + CommandLogDisabled = OldCommandLogDisabled; } //@}