ok, can't compile this without the SDL libs but I'm not touching is_draw_tiles_mode(), it being implemented in 2 places requires a bit much plumbing.   result .. its now as if line 1138 had never been removed.  does that look ok?