Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

//#define GENERALS_ONLINE_RUN_FAST 1

#define GENERALS_ONLINE_DEFAULT_LOBBY_CAMERA_ZOOM 450
#define GENERALS_ONLINE_MIN_LOBBY_CAMERA_ZOOM 400
#define GENERALS_ONLINE_DEFAULT_LOBBY_CAMERA_ZOOM 310
#define GENERALS_ONLINE_MIN_LOBBY_CAMERA_ZOOM 210
#define GENERALS_ONLINE_MAX_LOBBY_CAMERA_ZOOM 1000

//#define GENERALS_ONLINE_HIGH_FPS_SERVER 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,13 @@ static void playerTooltip(GameWindow *window,
AsciiString sideName = "GUI:RandomSide";
if (mostGames > 0)
{
const PlayerTemplate* fac = ThePlayerTemplateStore->getNthPlayerTemplate(favorite);
if (fac)
if (favorite > 1) // cant be civilian or observer
{
sideName.format("SIDE:%s", fac->getSide().str());
const PlayerTemplate* fac = ThePlayerTemplateStore->getNthPlayerTemplate(favorite);
if (fac)
{
sideName.format("SIDE:%s", fac->getSide().str());
}
}
}
AsciiString rankName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define SETTINGS_KEY_CAMERA "camera"
#define SETTINGS_KEY_CAMERA_MIN_HEIGHT "min_height"
#define SETTINGS_KEY_CAMERA_MOVE_SPEED_RATIO "move_speed_ratio"
#define SETTINGS_KEY_CAMERA_MAX_HEIGHT_WHEN_LOBBY_HOST "max_height_when_lobby_host"
#define SETTINGS_KEY_CAMERA_MAX_HEIGHT_WHEN_LOBBY_HOST "max_height_only_when_lobby_host"

#define SETTINGS_KEY_INPUT "input"
#define SETTINGS_KEY_INPUT_LOCK_CURSOR_TO_GAME_WINDOW "lock_cursor_to_game_window"
Expand Down
Loading