Skip to content

Commit

Permalink
Client handle_player_diplstate excludes all observers and accepts all…
Browse files Browse the repository at this point in the history
… players

...when building the diplstates[] array
  • Loading branch information
Lexxie9952 committed Jan 20, 2024
1 parent d1a99aa commit 2b2d252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freeciv-web/src/main/webapp/javascript/packhand.js
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,7 @@ function handle_server_setting_control(packet)
function handle_player_diplstate(packet)
{
// This code applies to real players only:
if (!is_supercow()) {
if (!is_supercow() || !observing) {
if (client == null || client.conn.playing == null) return;

if (packet['type'] == DS_WAR && packet['plr2'] == client.conn.playing['playerno']
Expand Down

0 comments on commit 2b2d252

Please sign in to comment.