Revision | 3a940811b717ac9f88f0522d4aa08e48e9202889 (tree) |
---|---|
Time | 2017-03-05 14:33:00 |
Author | SUEHIRO <supersuehiro@user...> |
Commiter | SUEHIRO |
ソフト描画で落ちることがあるのを修正
@@ -1295,11 +1295,11 @@ public &Anim<frame_t> | ||
1295 | 1295 | { |
1296 | 1296 | if(#`spr == 0 || #`spr~pxl == 0) ret; |
1297 | 1297 | float h = (float)`frames[`drawidx].h, v = (float)`frames[`drawidx].v; |
1298 | - float xs = xscale, ys = yscale; | |
1299 | - float agl = angle; | |
1298 | + float xs = xscale, ys = yscale, agl = 0.0; | |
1300 | 1299 | `exParam(`frames[`drawidx]=, h=, v=, agl=); |
1301 | 1300 | float rx = x+xs*h*(float)`frames[`drawidx].x+(float).com.GameWidth/2.0; |
1302 | 1301 | /?/*.cfg.OpenGL: |
1302 | + agl += angle; | |
1303 | 1303 | `spr~glDraw( |
1304 | 1304 | `palFoo(fx), `mask, #(xs*h)*(float)`spr~rct.x*.com.WidthScale, |
1305 | 1305 | #(ys*v)*(float)`spr~rct.y*.com.HeightScale, `tile=, |
@@ -1308,8 +1308,8 @@ public &Anim<frame_t> | ||
1308 | 1308 | .com.scrrect=, rx*.com.WidthScale, |
1309 | 1309 | (y+ys*v*(float)`frames[`drawidx].y)*.com.HeightScale, fx); |
1310 | 1310 | /*true: |
1311 | - uint uagl = (uint)((512.0/.m.PI)*agl + 0.5) & 0x3ff; | |
1312 | - if(uagl == 0x0 && agl == angle){ | |
1311 | + uint uagl = (uint)((512.0 / .m.PI) * (angle + agl) + 0.5) & 0x3ff; | |
1312 | + if(uagl == 0x0 && agl == 0.0){ | |
1313 | 1313 | `draw( |
1314 | 1314 | .com.scrrect=, x - xs*h*(float)`frames[`drawidx].x, y, |
1315 | 1315 | 1.0, 1.0, xs, xs, ys, 0.0, (float).com.GameWidth/2.0, fx, false); |