mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-06-07 20:04:57 -06:00
mcl don't throw exception "Couldn't find tile index!"
This commit is contained in:
parent
36afa67e5f
commit
ff2249995d
@ -839,8 +839,8 @@ namespace m
|
|||||||
for (int tx = 0; tx < m_ctx; tx++) {
|
for (int tx = 0; tx < m_ctx; tx++) {
|
||||||
TileSet.ExtractTilePixels(bm, tx, ty, m_sizTile, ref aclrTile);
|
TileSet.ExtractTilePixels(bm, tx, ty, m_sizTile, ref aclrTile);
|
||||||
int index = tset.FindTileIndex(aclrTile);
|
int index = tset.FindTileIndex(aclrTile);
|
||||||
if (index == -1)
|
// if (index == -1)
|
||||||
throw new Exception("Couldn't find tile index!");
|
// throw new Exception("Couldn't find tile index!");
|
||||||
m_aiTile[ty, tx] = index;
|
m_aiTile[ty, tx] = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user