mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
* Turrets, keep and turret covers can be now be placed by altering wall_pos.txt
* Fixed recruitment slider bug * Fixed #271 * Improved color management
This commit is contained in:
@@ -394,12 +394,15 @@ void Graphics::loadWallPositions()
|
||||
const int MAX_BUF = 2000;
|
||||
char buf[MAX_BUF+1];
|
||||
|
||||
// skip the first three lines because they are comment lines
|
||||
inp.getline(buf, MAX_BUF);
|
||||
inp.getline(buf, MAX_BUF);
|
||||
inp.getline(buf, MAX_BUF);
|
||||
std::string dump;
|
||||
for(int g=0; g<ARRAY_COUNT(wallPositions); ++g)
|
||||
{
|
||||
inp >> dump;
|
||||
for(int b=0; b<12; ++b)
|
||||
for(int b = 0; b < 20; ++b)
|
||||
{
|
||||
Point pt;
|
||||
inp >> pt.x;
|
||||
|
Reference in New Issue
Block a user