~widelands-dev/widelands/bug-1619402-port-work-area-on-expedition

« back to all changes in this revision

Viewing changes to src/wui/interactive_spectator.cc

  • Committer: GunChleoc
  • Date: 2018-07-14 08:56:00 UTC
  • Revision ID: fios@foramnagaidhlig.net-20180714085600-7jc6x6f447tkwxlv
Removed "Show workarea preview" option. Renamed variables and functions for consistency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        const uint32_t gametime = the_game.get_gametime();
122
122
 
123
123
        const auto text_to_draw = get_text_to_draw();
124
 
        const std::map<Widelands::Coords, const Image*> work_area_overlays = get_work_area_overlays(map);
 
124
        const std::map<Widelands::Coords, const Image*> workarea_overlays = get_workarea_overlays(map);
125
125
        for (size_t idx = 0; idx < fields_to_draw->size(); ++idx) {
126
126
                const FieldsToDraw::Field& field = fields_to_draw->at(idx);
127
127
 
145
145
                };
146
146
 
147
147
                // Draw work area previews.
148
 
                const auto it = work_area_overlays.find(field.fcoords);
149
 
                if (it != work_area_overlays.end()) {
 
148
                const auto it = workarea_overlays.find(field.fcoords);
 
149
                if (it != workarea_overlays.end()) {
150
150
                        const Image* pic = it->second;
151
151
                        blit_overlay(pic, Vector2i(pic->width() / 2, pic->height() / 2));
152
152
                }