1
0
Fork 0

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

release/1.0
alberth 2009-09-02 20:44:36 +00:00
parent a3ddb8a235
commit a536a15459
1 changed files with 5 additions and 1 deletions

View File

@ -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);