Skip to content

Commit

Permalink
refactor: leftover translations
Browse files Browse the repository at this point in the history
  • Loading branch information
K4thos committed Jan 11, 2025
1 parent 2d900ae commit e34e614
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/bgdef.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ func loadBGDef(sff *Sff, def string, bgname string) (*BGDef, error) {
bgcdef.bg, bgcdef.looptime = nil, -1
if ids := is.readI32CsvForStage("ctrlid"); len(ids) > 0 &&
(len(ids) > 1 || ids[0] != -1) {
kishutu := make(map[int32]bool)
uniqueIDs := make(map[int32]bool)
for _, id := range ids {
if kishutu[id] {
if uniqueIDs[id] {
continue
}
bgcdef.bg = append(bgcdef.bg, s.getBg(id)...)
kishutu[id] = true
uniqueIDs[id] = true
}
} else {
bgcdef.bg = append(bgcdef.bg, s.bg...)
Expand All @@ -125,13 +125,13 @@ func loadBGDef(sff *Sff, def string, bgname string) (*BGDef, error) {
if ids := is.readI32CsvForStage("ctrlid"); len(ids) > 0 {
bgc.bg = nil
if len(ids) > 1 || ids[0] != -1 {
kishutu := make(map[int32]bool)
uniqueIDs := make(map[int32]bool)
for _, id := range ids {
if kishutu[id] {
if uniqueIDs[id] {
continue
}
bgc.bg = append(bgc.bg, s.getBg(id)...)
kishutu[id] = true
uniqueIDs[id] = true
}
} else {
bgc.bg = append(bgc.bg, s.bg...)
Expand Down
2 changes: 1 addition & 1 deletion src/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -2105,7 +2105,7 @@ func (cl *CommandList) Input(controller int, facing int32, aiLevel float32, ib I
}

if controller < 0 && ^controller < len(sys.aiInput) {
sys.aiInput[^controller].Update(aiLevel) // 乱数を使うので同期がずれないようここで / "Since random numbers are used, we handle it here to avoid desync"
sys.aiInput[^controller].Update(aiLevel) // Since random numbers are used, we handle it here to avoid desync
}
_else := controller < 0
if _else {
Expand Down
12 changes: 6 additions & 6 deletions src/stage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1282,13 +1282,13 @@ func loadStage(def string, maindef bool) (*Stage, error) {
bgcdef.bg, bgcdef.looptime = nil, -1
if ids := is.readI32CsvForStage("ctrlid"); len(ids) > 0 &&
(len(ids) > 1 || ids[0] != -1) {
kishutu := make(map[int32]bool)
uniqueIDs := make(map[int32]bool)
for _, id := range ids {
if kishutu[id] {
if uniqueIDs[id] {
continue
}
bgcdef.bg = append(bgcdef.bg, s.getBg(id)...)
kishutu[id] = true
uniqueIDs[id] = true
}
} else {
bgcdef.bg = append(bgcdef.bg, s.bg...)
Expand All @@ -1300,13 +1300,13 @@ func loadStage(def string, maindef bool) (*Stage, error) {
if ids := is.readI32CsvForStage("ctrlid"); len(ids) > 0 {
bgc.bg = nil
if len(ids) > 1 || ids[0] != -1 {
kishutu := make(map[int32]bool)
uniqueIDs := make(map[int32]bool)
for _, id := range ids {
if kishutu[id] {
if uniqueIDs[id] {
continue
}
bgc.bg = append(bgc.bg, s.getBg(id)...)
kishutu[id] = true
uniqueIDs[id] = true
}
} else {
bgc.bg = append(bgc.bg, s.bg...)
Expand Down

0 comments on commit e34e614

Please sign in to comment.