17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-18 10:19:20 +02:00

refactor: change typedef, nullptr, scoped_lock and others

This commit is contained in:
jerrrrycho
2026-09-27 19:31:00 +02:00
parent 8fbb482350
commit b8c9724ca3
42 changed files with 186 additions and 186 deletions

View File

@@ -352,7 +352,7 @@ bool TAnimModel::Load(cParser *parser, bool ter)
if( i < iNumLights
&& token != "-1" ) { // -1 leaves the default color intact
auto const lightcolor { std::stoi( token, 0, 16 ) };
auto const lightcolor { std::stoi( token, nullptr, 16 ) };
m_lightcolors[i] = {
( lightcolor >> 16 & 0xff ) / 255.f,
( lightcolor >> 8 & 0xff ) / 255.f,
@@ -655,7 +655,7 @@ int TAnimModel::TerrainCount()
TSubModel * TAnimModel::TerrainSquare(int n)
{ // pobieranie wskaźników do pierwszego submodelu
return pModel ? pModel->TerrainSquare(n) : 0;
return pModel ? pModel->TerrainSquare(n) : nullptr;
}
//---------------------------------------------------------------------------