~widelands-dev/widelands/trunk

« back to all changes in this revision

Viewing changes to src/logic/playercommand.cc

  • Committer: The Widelands Bunnybot
  • Date: 2022-11-23 19:29:47 UTC
  • Revision ID: bunnybot@widelands.org-20221123192947-ykr4kndma70cjd1q
Make diplomacy window available to spectators (#5609)

(by Noordfrees)
8a120c6d547c18d28358a78265cff51a489ee4a0

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include "logic/widelands_geometry_io.h"
40
40
#include "map_io/map_object_loader.h"
41
41
#include "map_io/map_object_saver.h"
 
42
#include "wui/interactive_spectator.h"
42
43
 
43
44
namespace Widelands {
44
45
 
2148
2149
                                                     Message::Type::kScenario, game.get_gametime(), _("Diplomacy"),
2149
2150
                                                     "images/players/team.png", heading, text)));
2150
2151
                }
 
2152
                if (upcast(InteractiveSpectator, is, game.get_ibase())) {
 
2153
                        is->log_message(heading, text);
 
2154
                }
2151
2155
        };
2152
2156
 
2153
2157
        switch (action_) {