don't crash in _draw_standard if p < 0 (fixes #58)
This commit is contained in:
1 parent
406243d490
commit
4037cdf86b
1 file changed
+4
@@ -1185,6 +1185,10 @@ export class Tileset {
|
|||||||
// Lexy runs cooldown from S to 1; CC2 from S-1 to 0. 0 is bad, because p becomes 1
|
// Lexy runs cooldown from S to 1; CC2 from S-1 to 0. 0 is bad, because p becomes 1
|
||||||
// and will overflow the cel lookup
|
// and will overflow the cel lookup
|
||||||
// FIXME handle this better! it happens even to lexy
|
// FIXME handle this better! it happens even to lexy
|
||||||
|
// this new one happened because of turntable attempt_step, not sure why yet
|
||||||
|
if (p < 0) {
|
||||||
|
p = 0;
|
||||||
|
}
|
||||||
if (p >= 1) {
|
if (p >= 1) {
|
||||||
p = 0.999;
|
p = 0.999;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user