X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/6a5fa4e03967ab980cdc7ef96a42400bc29b4414..8813bb554e82f33df0ea6f461b1a653dee41bfe9:/src/sim/w_tk.c diff --git a/src/sim/w_tk.c b/src/sim/w_tk.c index 2a380b3..08c16f9 100644 --- a/src/sim/w_tk.c +++ b/src/sim/w_tk.c @@ -475,8 +475,8 @@ TileViewEventProc(ClientData clientData, XEvent *eventPtr) /* XXX: redraw all views showing cursor */ /* XXX: also, make sure switching tools works w/out moving */ if (((view->tool_showing != last_showing) || - (view->tool_x != last_x) || - (view->tool_y != last_y))) { + ((view->tool_x >> 4) != (last_x >> 4)) || + ((view->tool_y >> 4) != (last_y >> 4)))) { #if 1 EventuallyRedrawView(view); #else @@ -774,6 +774,7 @@ tk_main() graph_command_init(); date_command_init(); sprite_command_init(); + sound_command_init(); #ifdef CAM cam_command_init(); @@ -819,7 +820,7 @@ tk_main() Tk_MainLoop(); - sim_exit(0); // Just sets tkMustExit and ExitReturn + sim_really_exit(0); bail: