Changeset - r21977:7b114643b2b6
[Not reviewed]
master
0 1 0
frosch - 9 years ago 2015-02-01 12:25:51
frosch@openttd.org
(svn r27132) -Codechange: Add an assertion about the size of the Tile struct to ensure alignment assumptions.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/map_type.h
Show inline comments
 
@@ -26,6 +26,8 @@ struct Tile {
 
	byte   m5;          ///< General purpose
 
};
 

	
 
assert_compile(sizeof(Tile) == 8);
 

	
 
/**
 
 * Data that is stored per tile. Also used Tile for this.
 
 * Look at docs/landscape.html for the exact meaning of the members.
0 comments (0 inline, 0 general)