diff options
author | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
commit | 2cc2154ad26b96b032df2f4fca0ce1634e6330b2 (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /smallmap_gui.c | |
parent | 01638700067b9720c187598ad6b4bf786e0e63c1 (diff) | |
download | openttd-2cc2154ad26b96b032df2f4fca0ce1634e6330b2.tar.xz |
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index 232bfb493..4d7107680 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -968,9 +968,9 @@ static void ExtraViewPortWndProc(Window *w, WindowEvent *e) WP(w2, vp_d).scrollpos_y = y - (w2->viewport->virtual_height - w->viewport->virtual_height) / 2; } break; case 8: { /* inverse location button (move this view to same spot as main view) 'Copy Location' */ - const Window *w2 = FindWindowById(WC_MAIN_WINDOW, 0); - int x = WP(w2, vp_d).scrollpos_x; - int y = WP(w2, vp_d).scrollpos_y; + const Window* w2 = FindWindowById(WC_MAIN_WINDOW, 0); + int x = WP(w2, const vp_d).scrollpos_x; + int y = WP(w2, const vp_d).scrollpos_y; WP(w, vp_d).scrollpos_x = x + (w2->viewport->virtual_width - w->viewport->virtual_width) / 2; WP(w, vp_d).scrollpos_y = y + (w2->viewport->virtual_height - w->viewport->virtual_height) / 2; |