]> git.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_tk.c
use old forking player when SDL_mixer is not available
[micropolis] / src / sim / w_tk.c
index ceed33ad6e8bf7762e47d65684f1835758a6c1e9..08c16f9ba279dd0a29dae821ac975e4c3d63767d 100644 (file)
@@ -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();
Impressum, Datenschutz