mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Small optimization.
This commit is contained in:
parent
4922e62b13
commit
f93c9fdd15
@ -511,9 +511,11 @@ Array2D<int> TilingWaveFormCollapse::id_to_tiling(Array2D<int> ids) {
|
|||||||
|
|
||||||
IdToTilePair oriented_tile = id_to_oriented_tile[id];
|
IdToTilePair oriented_tile = id_to_oriented_tile[id];
|
||||||
|
|
||||||
|
const Array2D<int> &tile = tiles[oriented_tile.id].data[oriented_tile.oriented_tile];
|
||||||
|
|
||||||
for (int y = 0; y < size; y++) {
|
for (int y = 0; y < size; y++) {
|
||||||
for (int x = 0; x < size; x++) {
|
for (int x = 0; x < size; x++) {
|
||||||
tiling.get(i * size + y, j * size + x) = tiles[oriented_tile.id].data[oriented_tile.oriented_tile].get(y, x);
|
tiling.get(i * size + y, j * size + x) = tile.get(y, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user