mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r2560) Fix: various minor code changes.
Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC.
This commit is contained in:
2
stdafx.h
2
stdafx.h
@@ -8,6 +8,8 @@
|
||||
#pragma warning(disable: 4100) // parameter not used
|
||||
#pragma warning(disable: 4244) // conversion
|
||||
#pragma warning(disable: 4245) // conversion
|
||||
#pragma warning(disable: 4305) // 'initializing' : truncation from 'const int ' to 'char '
|
||||
#pragma warning(disable: 4018) // warning C4018: '==' : signed/unsigned mismatch
|
||||
#pragma warning(disable: 4201) // nameless union
|
||||
#pragma warning(disable: 4514) // removed unref inline
|
||||
#pragma warning(disable: 4127) // constant conditional expression
|
||||
|
Reference in New Issue
Block a user