Skip to content

Commit a62270d

Browse files
committed
Corrected FBM check in Noise class.
1 parent 6b4d884 commit a62270d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ v2.0.0
88

99
Unreleased
1010
------------------
11+
Fixed
12+
- Indexing Noise classes now works with the FBM implementation.
1113

1214
12.1.0 - 2021-04-01
1315
-------------------

tcod/noise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def __getitem__(self, indexes: Any) -> np.ndarray:
189189
*c_input,
190190
ffi.from_buffer("float*", out),
191191
)
192-
elif self.implementation == SIMPLE:
192+
elif self.implementation == FBM:
193193
lib.TCOD_noise_get_fbm_vectorized(
194194
self.noise_c,
195195
self.algorithm,

0 commit comments

Comments
 (0)