src/misc_cmd.cpp
branchcpp_gui
changeset 6235 5077e6ed3788
parent 5838 9c3129cb019b
child 6258 a2f86b8fd99b
equal deleted inserted replaced
6234:42bf2d268a86 6235:5077e6ed3788
   327 		}
   327 		}
   328 
   328 
   329 		/* If we are a network-client, update the difficult setting (if it is open).
   329 		/* If we are a network-client, update the difficult setting (if it is open).
   330 		 * Use this instead of just dirtying the window because we need to load in
   330 		 * Use this instead of just dirtying the window because we need to load in
   331 		 * the new difficulty settings */
   331 		 * the new difficulty settings */
   332 		if (_networking && !_network_server && FindWindowById(WC_GAME_OPTIONS, 0) != NULL)
   332 		if (_networking && !_network_server && Window::FindById(WC_GAME_OPTIONS, 0) != NULL)
   333 			ShowGameDifficulty();
   333 			ShowGameDifficulty();
   334 	}
   334 	}
   335 	return 0;
   335 	return 0;
   336 }
   336 }