forked from mirror/OpenTTD
(svn r17392) -Codechange: Use 'default' for reacting on click.
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user