Skip to content

Commit 426ebe4

Browse files
committed
Add missing FOV_SYMMETRIC_SHADOWCAST constant.
Also adds an import from constants to make it less bad when __all__ isn't updated correctly. Fixes #101
1 parent 251303f commit 426ebe4

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
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+
- Fixed missing `tcod.FOV_SYMMETRIC_SHADOWCAST` constant.
1113

1214
11.18.1 - 2020-11-30
1315
--------------------

tcod/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
)
3232
from tcod.console import Console # noqa: F401
3333
from tcod.libtcodpy import * # noqa: F4
34+
from tcod.constants import * # noqa: F4
3435
from tcod.loader import __sdl_version__, ffi, lib # noqa: F4
3536

3637
try:
@@ -325,6 +326,7 @@
325326
"FOV_PERMISSIVE_8",
326327
"FOV_RESTRICTIVE",
327328
"FOV_SHADOW",
329+
"FOV_SYMMETRIC_SHADOWCAST",
328330
"KEY_0",
329331
"KEY_1",
330332
"KEY_2",

tcod/libtcodpy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4667,6 +4667,7 @@ def _atexit_verify() -> None:
46674667
"FOV_PERMISSIVE_8",
46684668
"FOV_RESTRICTIVE",
46694669
"FOV_SHADOW",
4670+
"FOV_SYMMETRIC_SHADOWCAST",
46704671
"KEY_0",
46714672
"KEY_1",
46724673
"KEY_2",

0 commit comments

Comments
 (0)