• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Go Ikemen


Commit MetaInfo

修訂101f71c43e13a12df3cd79ad3410eabbb55fd652 (tree)
時間2017-03-20 17:29:44
作者SUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

画面端ぴったりでないと cornerpush が効かないのを修正

Change Summary

差異

--- a/src/char.go
+++ b/src/char.go
@@ -3396,7 +3396,7 @@ func (c *Char) hitVelSetY() {
33963396 }
33973397 }
33983398 func (c *Char) getEdge(base float32, actually bool) float32 {
3399- if !actually || c.gi().ver[0] != 1 {
3399+ if !actually || c.stCgi().ver[0] != 1 {
34003400 switch c.ss.stateType {
34013401 case ST_A:
34023402 return base + 1
@@ -4886,6 +4886,11 @@ func (cl *CharList) clsn(getter *Char, proj bool) {
48864886 }
48874887 c.addTarget(getter.id)
48884888 getter.ghv.addId(c.id, c.gi().data.airjuggle)
4889+ xmi, xma := gxmin+2, gxmax-2
4890+ if c.stCgi().ver[0] != 1 {
4891+ xmi += 2
4892+ xma -= 2
4893+ }
48894894 if Abs(hitType) == 1 {
48904895 if !proj && (hd.p1getp2facing != 0 || hd.p1facing < 0) &&
48914896 c.facing != byf {
@@ -4922,8 +4927,8 @@ func (cl *CharList) clsn(getter *Char, proj bool) {
49224927 }
49234928 getter.getcombo += hd.numhits * hits
49244929 if hitType > 0 && !proj && getter.sf(CSF_screenbound) &&
4925- (c.facing < 0 && getter.pos[0] <= gxmin ||
4926- c.facing > 0 && getter.pos[0] >= gxmax) {
4930+ (c.facing < 0 && getter.pos[0] <= xmi ||
4931+ c.facing > 0 && getter.pos[0] >= xma) {
49274932 switch getter.ss.stateType {
49284933 case ST_S, ST_C:
49294934 c.veloff = hd.ground_cornerpush_veloff * c.facing
@@ -4935,8 +4940,8 @@ func (cl *CharList) clsn(getter *Char, proj bool) {
49354940 }
49364941 } else {
49374942 if hitType > 0 && !proj && getter.sf(CSF_screenbound) &&
4938- (c.facing < 0 && getter.pos[0] <= gxmin ||
4939- c.facing > 0 && getter.pos[0] >= gxmax) {
4943+ (c.facing < 0 && getter.pos[0] <= xmi ||
4944+ c.facing > 0 && getter.pos[0] >= xma) {
49404945 switch getter.ss.stateType {
49414946 case ST_S, ST_C:
49424947 c.veloff = hd.guard_cornerpush_veloff * c.facing