diff options
author | frosch <frosch@openttd.org> | 2013-05-26 20:17:07 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-05-26 20:17:07 +0000 |
commit | dd826ecbdf23cc06d2941d4b3210b0ea5a839d93 (patch) | |
tree | 81d97bb271e983c46cd4390bfc884285d3f5f13b /src | |
parent | a4cddc3e082e2bba80644792b2f6623979328e65 (diff) | |
download | openttd-dd826ecbdf23cc06d2941d4b3210b0ea5a839d93.tar.xz |
(svn r25297) -Fix (r25291): 32bit compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 0e67c0bf8..e4041c319 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -125,7 +125,7 @@ void WindowDesc::LoadFromConfig() /** * Sort WindowDesc by ini_key. */ -static int DescSorter(WindowDesc * const *a, WindowDesc * const *b) +static int CDECL DescSorter(WindowDesc * const *a, WindowDesc * const *b) { if ((*a)->ini_key != NULL && (*b)->ini_key != NULL) return strcmp((*a)->ini_key, (*b)->ini_key); return ((*b)->ini_key != NULL ? 1 : 0) - ((*a)->ini_key != NULL ? 1 : 0); @@ -597,7 +597,7 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, int click_count) case WWT_STICKYBOX: w->flags ^= WF_STICKY; nw->SetDirty(w); - if (_ctrl_pressed) w->window_desc->pref_sticky = w->flags & WF_STICKY; + if (_ctrl_pressed) w->window_desc->pref_sticky = (w->flags & WF_STICKY) != 0; return; default: |