Revert "Support for horizontal animated sprites"
This reverts commit d48df9756f.
This commit is contained in:
parent
a12db9545f
commit
e7295bb18f
|
|
@ -208,14 +208,12 @@ sub LoadAnimatedSprite {
|
||||||
);
|
);
|
||||||
my $surface = $s1->surface();
|
my $surface = $s1->surface();
|
||||||
|
|
||||||
my $smallest = ($surface->width() < $surface->height() ? $surface->width() : $surface->height());
|
|
||||||
|
|
||||||
my $sprite = SDLx::Sprite::Animated->new(
|
my $sprite = SDLx::Sprite::Animated->new(
|
||||||
surface => $surface,
|
surface => $surface,
|
||||||
width => $smallest,
|
width => $surface->width(),
|
||||||
height => $smallest,
|
height => $surface->width(),
|
||||||
step_x => $smallest,
|
step_x => $surface->width(),
|
||||||
step_y => $smallest,
|
step_y => $surface->width(),
|
||||||
);
|
);
|
||||||
if(!$sprite) {
|
if(!$sprite) {
|
||||||
LogData(ERROR, "Unable to load ASprite '$filename': $!");
|
LogData(ERROR, "Unable to load ASprite '$filename': $!");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue