// Having fixed up the coordinates, fall through to the local
// coordinate handler.
- doLocalMouseAction(button, updown, x, y);
+ return doLocalMouseAction(button, updown, x, y);
}
do_dialog_close (const SGPropertyNode * arg)
{
NewGUI * gui = (NewGUI *)globals->get_subsystem("gui");
- gui->closeActiveDialog();
+ return gui->closeActiveDialog();
}
break;
case OPTION_FUNC:
if ( pt->has_param && pos != string::npos ) {
- pt->func( arg.substr( pos + 1 ).c_str() );
+ return pt->func( arg.substr( pos + 1 ).c_str() );
} else if ( !pt->has_param && pos == string::npos ) {
- pt->func( 0 );
+ return pt->func( 0 );
} else if ( pt->has_param ) {
SG_LOG( SG_GENERAL, SG_ALERT, "Option '" << arg << "' needs a parameter" );
return FG_OPTIONS_ERROR;
sCallsign = MsgHdr->sCallsign;
// Process the player data unless we generated it
- if (m_sCallsign != MsgHdr->sCallsign) {
+ if (m_sCallsign != string(MsgHdr->sCallsign)) {
// Process messages