diff options
author | hackykid <hackykid@openttd.org> | 2005-07-08 19:02:26 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-07-08 19:02:26 +0000 |
commit | dad7e8f48613b2dba9821c5bcba9e9e3e459e799 (patch) | |
tree | cc77b3c13fd1f0dff9014fd97d291e77ef2ba753 | |
parent | 0438c54bd77f5a03fba13e7f59107dc7baf7d736 (diff) | |
download | openttd-dad7e8f48613b2dba9821c5bcba9e9e3e459e799.tar.xz |
(svn r2532) - Fix: Don't waste space using an int where a byte would suffice. (ludde)
-rw-r--r-- | table/autorail.h | 2 | ||||
-rw-r--r-- | viewport.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/table/autorail.h b/table/autorail.h index f219f1c7d..43cc03216 100644 --- a/table/autorail.h +++ b/table/autorail.h @@ -50,7 +50,7 @@ const int AutorailTilehSprite[31][6] = { // maps each pixel of a tile (16x16) to a selection type // (0,0) is the top corner, (16,16) the bottom corner -const int AutorailPiece[16][16] = { +const byte AutorailPiece[16][16] = { { 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5 }, { 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5 }, { 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5 }, diff --git a/viewport.c b/viewport.c index 85dba5296..5624e7670 100644 --- a/viewport.c +++ b/viewport.c @@ -1875,7 +1875,7 @@ void SetTileSelectBigSize(int ox, int oy, int sx, int sy) { /* returns the best autorail highlight type from map coordinates */ static byte GetAutorailHT(int x, int y) { - int i; + byte i; i = AutorailPiece[x&0xF][y&0xF]; return HT_RAIL | i; } |