23 package com.realtime.crossfire.jxclient.server.crossfire;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
60 private final Object
sync =
new Object();
105 synchronized (
sync) {
123 final int numLookObjects;
124 synchronized (
sync) {
165 if (value.equals(
"FALSE")) {
166 System.err.println(
"Warning: the server is too old for this client since it does not support the num_look_objects setup option.");
167 System.err.println(
"Expect issues with the ground view display.");
168 synchronized (
sync) {
176 final int thisNumLookObjects;
178 thisNumLookObjects = Integer.parseInt(value);
179 }
catch (
final NumberFormatException ignored) {
182 final boolean negotiate;
183 synchronized (
sync) {
185 System.err.println(
"the server sent an unexpected 'setup num_look_objects "+value+
"'.");
189 System.err.println(
"Warning: the server didn't accept the num_look_objects setup option: requested "+
pendingNumLookObjects+
", returned "+thisNumLookObjects+
".");
190 System.err.println(
"Expect issues with the ground view display.");
218 synchronized (
sync) {
220 if (this.preferredNumLookObjects == preferredNumLookObjects2) {
224 this.preferredNumLookObjects = preferredNumLookObjects2;
235 synchronized (
sync) {
247 synchronized (
sync) {
259 synchronized (
sync) {