src/console_gui.cpp
changeset 10426 4a77f7049b5e
parent 10276 b60b7e17db62
--- a/src/console_gui.cpp	Mon Dec 15 22:22:23 2008 +0000
+++ b/src/console_gui.cpp	Tue Dec 16 17:58:27 2008 +0000
@@ -153,7 +153,7 @@
 	IConsoleWindow(const WindowDesc *desc) : Window(desc)
 	{
 		_iconsole_mode = ICONSOLE_OPENED;
-		SetBit(_no_scroll, SCROLL_CON); // override cursor arrows; the gamefield will not scroll
+		_no_scroll++; // override cursor arrows; the gamefield will not scroll
 
 		this->height = _screen.height / 3;
 		this->width  = _screen.width;
@@ -162,7 +162,7 @@
 	~IConsoleWindow()
 	{
 		_iconsole_mode = ICONSOLE_CLOSED;
-		ClrBit(_no_scroll, SCROLL_CON);
+		_no_scroll--;
 	}
 
 	virtual void OnPaint()