Fix compilation under MSVC.
This commit is contained in:
parent
4795c9570e
commit
805ee08cdf
1 changed files with 4 additions and 0 deletions
|
@ -488,7 +488,11 @@ int CTileset::getTileIndexBySurrounding(unsigned short type,
|
|||
}
|
||||
|
||||
Assert(type == MapFieldForest || type == MapFieldRocks);
|
||||
#ifdef _MSC_VER
|
||||
const int *lookuptable = (type == MapFieldForest) ? WoodTable : RockTable;
|
||||
#else
|
||||
const int (&lookuptable)[20] = (type == MapFieldForest) ? WoodTable : RockTable;
|
||||
#endif
|
||||
tile = lookuptable[tile];
|
||||
|
||||
//If tile is -1, then we should check if we are to draw just one tree
|
||||
|
|
Loading…
Add table
Reference in a new issue