修订版 | b927b62add82731997d3cadb0ab676e277750ce4 (tree) |
---|---|
时间 | 2017-01-27 00:20:16 |
作者 | SUEHIRO <supersuehiro@user...> |
Commiter | SUEHIRO |
些細な修正
@@ -3236,7 +3236,7 @@ public &Char | ||
3236 | 3236 | { |
3237 | 3237 | if(`ctrl && `helperindex == 0){ |
3238 | 3238 | ^`self e = .players.enemyNear(`=, 0, true); |
3239 | - if((int)`facing*(int)`distX(e<>=) >= 0) break; | |
3239 | + if(`trP2DistX()$.v.toF() >= 0.0) break; | |
3240 | 3240 | branch{ |
3241 | 3241 | cond `stVal.typ == .StTy::S: |
3242 | 3242 | `trChangeAnim(5); |
@@ -3306,7 +3306,7 @@ public &Char | ||
3306 | 3306 | || (!(`inguarddist && `sf(.sfGUARD)) && `cmd~buffer~B > 0)) |
3307 | 3307 | : |
3308 | 3308 | if(`stVal.no != 20) `trChangeState(20, -1, -1); |
3309 | - cond `stVal.no == 20 && (`cmd~buffer~F < 0 && `cmd~buffer~B < 0): | |
3309 | + cond `stVal.no == 20 && `cmd~buffer~F < 0 && `cmd~buffer~B < 0: | |
3310 | 3310 | `trChangeState(0, -1, -1); |
3311 | 3311 | } |
3312 | 3312 | if( |
@@ -3912,10 +3912,7 @@ public &Char | ||
3912 | 3912 | break, break; |
3913 | 3913 | } |
3914 | 3914 | i++; |
3915 | - while i < #.chars[`playerno][`parentindex]~children: | |
3916 | - break: | |
3917 | - `parentindex *= -1; | |
3918 | - } | |
3915 | + while i < #.chars[`playerno][`parentindex]~children:} | |
3919 | 3916 | `children:<-[void(c=){ |
3920 | 3917 | if(c >= 0){ |
3921 | 3918 | .chars[`playerno][c]~parentindex *= -1; |
@@ -4926,7 +4923,7 @@ public &Char | ||
4926 | 4923 | h.sysfvar[.fVX] = h.sysfvar[.fVY] = 0.0; |
4927 | 4924 | if(ownpal != 0){ |
4928 | 4925 | h.palfx.new(1); |
4929 | - h.palfx~remap = .chars[`playerno][h.parentindex]~getPalMap() + (index)[]; | |
4926 | + h.palfx~remap = `getPalMap() + (index)[]; | |
4930 | 4927 | } |
4931 | 4928 | h.trChangeState2(st, `playerno, 0, 1); |
4932 | 4929 | } |