Fixed some new-line issues.

This commit is contained in:
David Capello 2010-03-07 16:39:58 -02:00
parent 324435760d
commit 470ae96c3b

View File

@ -100,13 +100,12 @@ void FlipCommand::execute(Context* context)
image = GetImage2(sprite, &x, &y, NULL); image = GetImage2(sprite, &x, &y, NULL);
if (!image) if (!image)
return; return;
// mask is empty?
// mask is empty? if (sprite->mask->is_empty()) {
if (sprite->mask->is_empty()) { // so we flip the entire image
// so we flip the entire image x1 = 0;
x1 = 0; y1 = 0;
y1 = 0;
x2 = image->w-1; x2 = image->w-1;
y2 = image->h-1; y2 = image->h-1;
} }