• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

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

Go で書き直した Ikemen


Commit MetaInfo

Revisionfefae2dc952c58dbf35c873badf830eb43ff71bb (tree)
Time2017-04-28 20:15:56
AuthorSUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

引き分けで maxdrawgames が無効だったり、Turnsでバグるのを修正

Change Summary

Incremental Difference

--- a/src/system.go
+++ b/src/system.go
@@ -924,7 +924,7 @@ func (s *System) action(x, y *float32, scl float32) (leftest, rightest,
924924 }
925925 if s.roundEnd() || fin() {
926926 inclWinCount := func() {
927- w := [...]bool{s.chars[0][0].win(), s.chars[1][0].win()}
927+ w := [...]bool{!s.chars[1][0].win(), !s.chars[0][0].win()}
928928 if !w[0] || !w[1] ||
929929 s.tmode[0] == TM_Turns || s.tmode[1] == TM_Turns ||
930930 s.draws >= s.lifebar.ro.match_maxdrawgames {