string msg = txt;
msg += '\n';
msg += throwable.getFormattedMessage();
- if (throwable.getOrigin() != (string)"") {
+ if (!throwable.getOrigin().empty()) {
msg += "\n (reported by ";
msg += throwable.getOrigin();
msg += ')';
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
ssgSetCamera( (sgVec4 *)globals->get_current_view()->get_VIEW() );
- float fov = globals->get_current_view()->get_fov();
- ssgSetFOV(fov, fov * globals->get_current_view()->get_fov_ratio());
+ ssgSetFOV( globals->get_current_view()->get_h_fov(),
+ globals->get_current_view()->get_v_fov() );
// ssgSetNearFar( 10.0f, 120000.0f );
ssgSetNearFar( 0.5f, 1200000.0f );
// Set up our Dialog Boxes
ConfirmExitDialogInit();
NewAirportInit();
+
#ifdef FG_NETWORK_OLK
NewNetIdInit();
NewNetFGDInit();
// Set up menu bar toggle
gui_menu_on = ~0;
- if (fgGetString("/sim/flight-model") == "ada") {
+ if (!strcmp("/sim/flight-model", "ada")) {
guiToggleMenu(); // Menu off by default
}
}