diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-19 22:24:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-19 22:24:18 +0000 |
commit | ba9f22cee6b0d4a4ba0b5740e2d532c41524756d (patch) | |
tree | b46bb1e03e00ce3e9e68695f1e77932e887415a6 /console.c | |
parent | fb1bb34774c49e3a1685dfffce88bb31b178636f (diff) | |
download | openttd-ba9f22cee6b0d4a4ba0b5740e2d532c41524756d.tar.xz |
(svn r7219) -Fix: Several warnings by gcc introduced in r7206 which MSVC found not of a problem. Thanks Tron
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -152,7 +152,7 @@ static void IConsoleWndProc(Window *w, WindowEvent *e) break; case WKC_CTRL | WKC_RETURN: _iconsole_mode = (_iconsole_mode == ICONSOLE_FULL) ? ICONSOLE_OPENED : ICONSOLE_FULL; - IConsoleResize(w); + IConsoleResize(); MarkWholeScreenDirty(); break; case (WKC_CTRL | 'V'): @@ -283,10 +283,8 @@ void IConsoleFree(void) CloseConsoleLogIfActive(); } -void IConsoleResize(Window *w) +void IConsoleResize(void) { - assert(_iconsole_win == w); - switch (_iconsole_mode) { case ICONSOLE_OPENED: _iconsole_win->height = _screen.height / 3; |