mirror of https://github.com/OpenTTD/OpenTTD
(svn r17392) -Codechange: Use 'default' for reacting on click.
parent
a3ddb8a235
commit
a536a15459
|
@ -366,7 +366,11 @@ struct NewsWindow : Window {
|
||||||
_forced_news = NULL;
|
_forced_news = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NTW_HEADLINE:
|
case NTW_CAPTION:
|
||||||
|
case NTW_VIEWPORT:
|
||||||
|
break; // Ignore clicks
|
||||||
|
|
||||||
|
default:
|
||||||
if (this->ni->reftype1 == NR_VEHICLE) {
|
if (this->ni->reftype1 == NR_VEHICLE) {
|
||||||
const Vehicle *v = Vehicle::Get(this->ni->ref1);
|
const Vehicle *v = Vehicle::Get(this->ni->ref1);
|
||||||
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);
|
ScrollMainWindowTo(v->x_pos, v->y_pos, v->z_pos);
|
||||||
|
|
Loading…
Reference in New Issue