mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +01:00
texmod
: Fix broken [sheet
assertions
This commit is contained in:
parent
50bd3d8a07
commit
5fbb159a41
@ -270,8 +270,8 @@ texmod.crack_with_opacity = texmod.cracko
|
|||||||
function texmod:sheet(w, h, x, y)
|
function texmod:sheet(w, h, x, y)
|
||||||
assert(w % 1 == 0 and w >= 1)
|
assert(w % 1 == 0 and w >= 1)
|
||||||
assert(h % 1 == 0 and h >= 1)
|
assert(h % 1 == 0 and h >= 1)
|
||||||
assert(x % 1 == 0 and x < w)
|
assert(x % 1 == 0 and x >= 0)
|
||||||
assert(y % 1 == 0 and y < w)
|
assert(y % 1 == 0 and y >= 0)
|
||||||
return new{
|
return new{
|
||||||
type = "sheet",
|
type = "sheet",
|
||||||
base = self,
|
base = self,
|
||||||
|
Loading…
Reference in New Issue
Block a user