Zooming only works when tiles are used (`use_tiles` is true) and of curse when TILES are enabled at all. You could just use `is_draw_tiles_mode()` instead, it contains both cases (see #7116).