Add death drop
This commit is contained in:
@@ -334,7 +334,8 @@ public:
|
||||
setTexture(texture);
|
||||
}
|
||||
virtual void render() {
|
||||
SDL_RenderCopy(renderer->getRendererPtr(), texture->getTexturePtr(), NULL, &rect);
|
||||
if(texture != NULL)
|
||||
SDL_RenderCopy(renderer->getRendererPtr(), texture->getTexturePtr(), NULL, &rect);
|
||||
}
|
||||
virtual void move(int ticks) {
|
||||
auto dimension = renderer->getSmallerSide();
|
||||
|
||||
Reference in New Issue
Block a user