1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Threat level texts are now stored in separate config file.

This commit is contained in:
DjWarmonger
2011-02-07 14:39:17 +00:00
parent 125f39275d
commit f96b394b01
4 changed files with 41 additions and 13 deletions

View File

@@ -533,6 +533,15 @@ void CGeneralTextHandler::load()
}
} while (nameBuf.size());
}
std::ifstream ifs(DATA_DIR "/config/threatlevel.txt", std::ios::in | std::ios::binary);
getline(ifs, buf); //skip 1st line
for (int i = 0; i < 13; ++i)
{
getline(ifs, buf);
threat.push_back(buf);
tlog1 << buf << "\n";
}
}