0
Commit Graph

10 Commits

Author SHA1 Message Date
Wunkolo
d738c21852 Propagate block, bool, standard integer types across codebase
Posix type integer pass

Propagate block, bool, integer types across codebase

Add standard integer types to prototypes
2019-06-25 11:56:11 -07:00
Wunkolo
8162f3f877 Add .clang_format
Also applies clang-format to the current code base, using command:
`find . -regex '.*\.\(c\|h\)' -exec clang-format -style=file -i {} \;`
2019-06-23 18:43:32 -07:00
Nicolas Frattaroli
89fc9b01b6 Fixed cave render for solid unknown blocks.
is_transparent returns 1 for every unknown block because that's an easy way to
make them ignore lighting, however, this makes cave render useless with a map
containing unknown ores.

The definition is_known_transparent checks whether a block is transparent and is known.

This is a workaround, a proper fix would be to have unknown blocks be neither transparent nor
solid. Or make them both. But don't prefer one of the two.
2013-09-13 23:54:58 +02:00
Andrew Chin
20f9f92abd Clean up some build warnings
Removed some unused code, and quelled some warnings via GCC
2012-03-02 13:40:58 -05:00
Aaron Griffith
a8c298fe4e depth-tinting, depth, and height-fading render primitives fixed for anvil 2012-02-21 14:49:37 -05:00
Aaron Griffith
136ea70281 all sections now loaded for each chunk, cave mode now works 2012-02-21 14:22:52 -05:00
Andrew Brown
ff3bfceef7 more C code fixes. Activated caching.
Also removed some code that I accidentially left in.
Also added a traceback printing decorator around get_chunk() because the
C code can potentially swallow those exceptions.
2012-01-17 21:52:01 -05:00
Andrew Brown
bbe105ead7 Fixes segfaults in the C extension
This should have been part of 70ef0af0 but I didn't catch these.
2012-01-16 22:00:44 -05:00
Andrew Brown
70ef0af00c modified C extension for get_chunk() raising exception on not found 2012-01-16 01:59:16 -05:00
Aaron Griffith
c93715ebfa migrated cave mode into cave and depth-tinting primitives 2012-01-08 18:29:32 -05:00