Code tweak
This commit is contained in:
@@ -52,6 +52,8 @@ SDL_Surface* TileSheet::GetSurface() {
|
|||||||
void TileSheet::FreeSurface() {
|
void TileSheet::FreeSurface() {
|
||||||
image.FreeSurface();
|
image.FreeSurface();
|
||||||
totalCount = xCount = yCount = 0;
|
totalCount = xCount = yCount = 0;
|
||||||
|
begin = end = -1;
|
||||||
|
name.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TileSheet::DrawTo(SDL_Surface* const dest, int x, int y, int tileIndex) {
|
void TileSheet::DrawTo(SDL_Surface* const dest, int x, int y, int tileIndex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user