X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FPlayground.cpp;fp=ABM2%2FPlayground.cpp;h=9f66d7286a4c530701df977b9170b542f6ef23e0;hp=27f1f72ee591df6d8e244bdddfd71116348ce17a;hb=a49c1b9c48808463eded779d895f5112ad84583a;hpb=4ab7ea7617b0c8cb1ab19bea1d439b3d1bb9839c diff --git a/ABM2/Playground.cpp b/ABM2/Playground.cpp index 27f1f72..9f66d72 100755 --- a/ABM2/Playground.cpp +++ b/ABM2/Playground.cpp @@ -507,6 +507,11 @@ Tile::~Tile() } void Tile::Draw() { + this->sprite->blit( + PLAYGROUND_BORDER_LEFT + this->col * FIELD_UNIT_WIDTH, + PLAYGROUND_BORDER_TOP + this->row * FIELD_UNIT_HEIGHT, + 1.0, 1.0, this->subsprite, 0, COLOUR_RGBA(0, 0, 0, 255) + ); #ifdef WIN32 D3DXVECTOR3 center(0.0f, 0.0f, 0.0f); // center at the upper-left corner 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