(svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness.

This commit is contained in:
rubidium
2009-02-09 01:06:23 +00:00
parent 7b8c13fa5c
commit 9907742a0f
19 changed files with 229 additions and 181 deletions

View File

@@ -272,7 +272,7 @@ static void Load_PLYR()
while ((index = SlIterateArray()) != -1) {
Company *c = new (index) Company();
SaveLoad_PLYR(c);
_company_colours[index] = c->colour;
_company_colours[index] = (Colours)c->colour;
}
}

View File

@@ -1051,7 +1051,7 @@ static bool LoadOldCompany(LoadgameState *ls, int num)
if (c->money == 893288) c->money = c->current_loan = 100000;
}
_company_colours[num] = c->colour;
_company_colours[num] = (Colours)c->colour;
c->inaugurated_year -= ORIGINAL_BASE_YEAR;
return true;