mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-25 21:45:00 +02:00
Actually fix the flat level generator.
This commit is contained in:
parent
eab1da6cce
commit
165a1e9fb9
@ -39,10 +39,10 @@ void TerramanLevelGeneratorFlat::set_channel_map(const Dictionary &map) {
|
||||
}
|
||||
|
||||
void TerramanLevelGeneratorFlat::_generate_chunk(Ref<TerraChunk> chunk) {
|
||||
Variant key;
|
||||
while (_channel_map.next(&key)) {
|
||||
int k = key;
|
||||
int value = _channel_map[key];
|
||||
const Variant *key = NULL;
|
||||
while ((key = _channel_map.next(key))) {
|
||||
int k = *key;
|
||||
int value = _channel_map[*key];
|
||||
|
||||
chunk->channel_fill(value, k);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user