From 6f72961f54226486cc516a1a2801371456358973 Mon Sep 17 00:00:00 2001 From: Star Brilliant Date: Thu, 19 Sep 2013 23:19:53 +0800 Subject: [PATCH] Better collision test in TestFreeRows --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index 8560bcc..5e7087f 100755 --- a/convert.py +++ b/convert.py @@ -37,7 +37,7 @@ def TestFreeRows(rows, c, row, width, height, bottomReserved, lifetime): if rows[c[4]][row] and rows[c[4]][row][0]+lifetime > c[0]: break else: - if rows[c[4]][row] and rows[c[4]][row][0]+lifetime*c[8]/width > c[0]: + if rows[c[4]][row] and rows[c[4]][row][0]+lifetime*(rows[c[4]][row][8]+c[8])/width > c[0]: break row += 1 res += 1