mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r17187) -Codechange: Make switches on news display mode complete.
This commit is contained in:
parent
cd1de081c2
commit
ff60a5605c
@ -254,7 +254,7 @@ struct NewsWindow : Window {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
case NM_SMALL:
|
||||||
this->DrawWidgets();
|
this->DrawWidgets();
|
||||||
if (!(this->ni->flags & NF_VIEWPORT)) {
|
if (!(this->ni->flags & NF_VIEWPORT)) {
|
||||||
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
|
CopyInDParam(0, this->ni->params, lengthof(this->ni->params));
|
||||||
@ -265,6 +265,8 @@ struct NewsWindow : Window {
|
|||||||
DrawStringMultiLine(2, this->width - 2, 64, this->height, this->ni->string_id, TC_FROMSTRING, SA_CENTER);
|
DrawStringMultiLine(2, this->width - 2, 64, this->height, this->ni->string_id, TC_FROMSTRING, SA_CENTER);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -443,7 +445,7 @@ static void ShowNewspaper(NewsItem *ni)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
case NM_SMALL:
|
||||||
_news_type0_desc.top = top;
|
_news_type0_desc.top = top;
|
||||||
w = new NewsWindow(&_news_type0_desc, ni);
|
w = new NewsWindow(&_news_type0_desc, ni);
|
||||||
if (ni->flags & NF_VIEWPORT) {
|
if (ni->flags & NF_VIEWPORT) {
|
||||||
@ -451,6 +453,8 @@ static void ShowNewspaper(NewsItem *ni)
|
|||||||
ni->reftype1 == NR_VEHICLE ? 0x80000000 | ni->ref1 : GetReferenceTile(ni->reftype1, ni->ref1), ZOOM_LVL_NEWS);
|
ni->reftype1 == NR_VEHICLE ? 0x80000000 | ni->ref1 : GetReferenceTile(ni->reftype1, ni->ref1), ZOOM_LVL_NEWS);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default: NOT_REACHED();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user