forked from jaildesigner-jailgames/jaildoctors_dilemma
Trabajando en el ending
This commit is contained in:
@@ -138,7 +138,14 @@ void Sprite::setSpriteClip(SDL_Rect rect)
|
||||
// Establece el valor de la variable
|
||||
void Sprite::setSpriteClip(int x, int y, int w, int h)
|
||||
{
|
||||
spriteClip = {x, y, w, h};
|
||||
if (w == -1 || h == -1)
|
||||
{
|
||||
spriteClip = {x, y, this->w, this->h};
|
||||
}
|
||||
else
|
||||
{
|
||||
spriteClip = {x, y, w, h};
|
||||
}
|
||||
}
|
||||
|
||||
// Obten el valor de la variable
|
||||
|
||||
Reference in New Issue
Block a user