Fixed a bug where the tilt angle could not be set to 0

This commit is contained in:
Martin Kamerbeek 2006-05-09 16:05:58 +00:00
parent b93b8ee613
commit 7d061da0f9

View file

@ -1013,7 +1013,8 @@ sub getTiltAngle {
my $self = shift;
my $angle = shift;
return $self->{_pieProperties}->{tiltAngle} || 55;
return 55 unless (defined $self->{_pieProperties}->{tiltAngle});
return $self->{_pieProperties}->{tiltAngle};
}
#-------------------------------------------------------------------