• 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

Revisióncb5d8468a742ca06d02bc88d2923a0b8d29d52e3 (tree)
Tiempo2018-01-09 18:49:59
Autorsuehiro <supersuehiro@user...>
Commitersuehiro

Log Message

表示時間 0 のフレームでループするアニメで落ちるのを修正

Cambiar Resumen

Diferencia incremental

--- a/src/anim.go
+++ b/src/anim.go
@@ -407,7 +407,7 @@ func (a *Animation) animSeek(elem int32) {
407407 foo := true
408408 for {
409409 a.current = elem
410- for a.curFrame().Time <= 0 && int(a.current) < len(a.frames) {
410+ for int(a.current) < len(a.frames) && a.curFrame().Time <= 0 {
411411 if int(a.current) == len(a.frames)-1 && a.curFrame().Time == -1 {
412412 break
413413 }