Slightly better error message when mode is unknown.
This commit is contained in:
parent
7769d53040
commit
69f0d85100
|
@ -297,7 +297,7 @@ function SpriteSheet:setOrigin (ox, oy, mode)
|
||||||
self.origin_x = self.tile_width * ox
|
self.origin_x = self.tile_width * ox
|
||||||
self.origin_y = self.tile_height * oy
|
self.origin_y = self.tile_height * oy
|
||||||
else
|
else
|
||||||
error('Unknown origin mode "%s"', mode)
|
error('Unknown origin mode %s (%s)', mode, type(mode))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user