• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Go で書き直した Ikemen


Commit MetaInfo

Revisiond94f7e3f632e50a80e45bb027386cffdfad4074c (tree)
Time2019-10-26 21:11:56
Authorneatunsou <sisiy4excite@gmai...>
Commiterneatunsou

Log Message

アーケードのステージ選択のミスを修正
Helperのownpalの処理を少し修正

Change Summary

Incremental Difference

--- a/script/select.lua
+++ b/script/select.lua
@@ -409,6 +409,8 @@ function select.f_selectStage()
409409 elseif main.t_selChars[t_p2Selected[1].cel + 1].stage ~= nil then
410410 stageNo = math.random(1, #main.t_selChars[t_p2Selected[1].cel + 1].stage)
411411 stageNo = main.t_selChars[t_p2Selected[1].cel + 1].stage[stageNo]
412+ else
413+ stageNo = main.t_includeStage[math.random(1, #main.t_includeStage)]
412414 end
413415 if stageNo == 0 then
414416 stageNo = main.t_includeStage[math.random(1, #main.t_includeStage)]
--- a/src/char.go
+++ b/src/char.go
@@ -2945,13 +2945,13 @@ func (c *Char) helperInit(h *Char, st int32, pt PosType, x, y float32,
29452945 h.vel = [2]float32{}
29462946 if ownpal {
29472947 h.palfx = newPalFX()
2948+ tmp := c.getPalfx().remap
2949+ h.palfx.remap = make([]int, len(tmp))
2950+ copy(h.palfx.remap, tmp)
2951+ c.forceRemapPal(h.palfx, rp)
29482952 } else {
29492953 h.palfx = c.palfx
29502954 }
2951- tmp := c.getPalfx().remap
2952- h.palfx.remap = make([]int, len(tmp))
2953- copy(h.palfx.remap, tmp)
2954- c.forceRemapPal(h.palfx, rp)
29552955 if extmap {
29562956 for key, value := range c.mapArray {
29572957 h.mapArray[key] = value