mirror of https://github.com/AxioDL/metaforce.git
CLogBookScreen: Invert conditional within UpdateBodyText()
Allows unindenting the contained code by one level.
This commit is contained in:
parent
b93f7a4ceb
commit
4db0e49851
|
@ -178,8 +178,11 @@ void CLogBookScreen::UpdateBodyText() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
TCachedToken<CStringTable>& str = x1f0_curViewScans[x1c_rightSel].second;
|
const TCachedToken<CStringTable>& str = x1f0_curViewScans[x1c_rightSel].second;
|
||||||
if (str && str.IsLoaded()) {
|
if (!str || !str.IsLoaded()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::u16string accumStr = str->GetString(0);
|
std::u16string accumStr = str->GetString(0);
|
||||||
if (str->GetStringCount() > 2) {
|
if (str->GetStringCount() > 2) {
|
||||||
accumStr += u"\n\n";
|
accumStr += u"\n\n";
|
||||||
|
@ -195,7 +198,6 @@ void CLogBookScreen::UpdateBodyText() {
|
||||||
|
|
||||||
x174_textpane_body->TextSupport().SetText(accumStr, true);
|
x174_textpane_body->TextSupport().SetText(accumStr, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void CLogBookScreen::UpdateBodyImagesAndText() {
|
void CLogBookScreen::UpdateBodyImagesAndText() {
|
||||||
const CScannableObjectInfo* scan = x1f0_curViewScans[x1c_rightSel].first.GetObj();
|
const CScannableObjectInfo* scan = x1f0_curViewScans[x1c_rightSel].first.GetObj();
|
||||||
|
|
Loading…
Reference in New Issue