multiple intricate implementations
This commit is contained in:
1 parent
7aa4ea4425
commit
77690cbd96
109 files changed
+2045
-56
No files matched your search
@@ -658,10 +658,7 @@ void ListDlg::initLines()
|
||||
break;
|
||||
}
|
||||
case ListKind::Tribe: {
|
||||
// Simplified: the original lists every predefined civilization
|
||||
// name bundled with the game (TribeNames, a static resource list
|
||||
// not ported); lists the nPl in-game nation slots instead.
|
||||
for (int i = 0; i < nPl; ++i)
|
||||
for (int i = 0; i < static_cast<int>(Term::tribeNames.size()); ++i)
|
||||
layers[static_cast<std::size_t>(LayerIndex::Improvements)].addLine(i);
|
||||
break;
|
||||
}
|
||||
@@ -1133,7 +1130,7 @@ void ListDlg::paintLine(Dpi::Canvas &ca, int l, bool nonText, bool lit, bool toW
|
||||
break;
|
||||
}
|
||||
case ListKind::Tribe:
|
||||
s = QStringLiteral("Nation #%1").arg(lix + 1);
|
||||
s = Term::tribeNames[static_cast<std::size_t>(lix)].name;
|
||||
break;
|
||||
case ListKind::ShipPart:
|
||||
s = QStringLiteral("%1 (%2)")
|
||||
|
||||
Reference in new issue
Block a user