* Use some more constants instead of literals.
[matthijs/ABM2.git] / ABM2 / Playground.cpp
index 27f1f72ee591df6d8e244bdddfd71116348ce17a..9f66d7286a4c530701df977b9170b542f6ef23e0 100755 (executable)
@@ -507,6 +507,11 @@ Tile::~Tile()
 }\r
 void Tile::Draw()\r
 {\r
+       this->sprite->blit(\r
+               PLAYGROUND_BORDER_LEFT + this->col * FIELD_UNIT_WIDTH,\r
+               PLAYGROUND_BORDER_TOP + this->row * FIELD_UNIT_HEIGHT,\r
+               1.0, 1.0, this->subsprite, 0, COLOUR_RGBA(0, 0, 0, 255)\r
+       );\r
 #ifdef WIN32\r
        D3DXVECTOR3 center(0.0f, 0.0f, 0.0f);    // center at the upper-left corner\r
        D3DXVECTOR3 position((FLOAT)PLAYGROUND_BORDER_LEFT+subitem_width*col, (FLOAT)PLAYGROUND_BORDER_TOP+subitem_height*row, 0.0f);    // position at 50, 50 with no depth\r