(svn r17392) -Codechange: Use 'default' for reacting on click.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
alberth 15 years ago
parent a3ddb8a235
commit a536a15459

@ -366,7 +366,11 @@ struct NewsWindow : Window {
_forced_news = NULL;
break;
case NTW_HEADLINE:
case NTW_CAPTION:
case NTW_VIEWPORT:
break; // Ignore clicks
default:
if (this->ni->reftype1 == NR_VEHICLE) {
const Vehicle *v = Vehicle::Get(this->ni->ref1);
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);

Loading…
Cancel
Save