Skip to content
Snippets Groups Projects
Commit e294d4e3 authored by lukasWoyke's avatar lukasWoyke
Browse files

Fix yellow arms.

parent c7821730
No related branches found
No related tags found
2 merge requests!62Fix master,!60Code cleanup lukas fix
......@@ -125,11 +125,11 @@ class CharacterManager {
var name = allTextureNames[i]
switch i {
case 4:
if let index = name.last?.wholeNumberValue, [2,3,4].contains(index) {
if let index = name.last?.wholeNumberValue, [2,3].contains(index) {
name = CharacterManager.flippedArms[index - 2]
}
case 5:
if let index = name.last?.wholeNumberValue, [2,3,4].contains(index) {
if let index = name.last?.wholeNumberValue, [2,3].contains(index) {
name = CharacterManager.flippedArms[index - 2]
}
case 6: name = name.replacingOccurrences(of: "BTHandsImages", with: "BTHandsRightImages")
......@@ -155,11 +155,11 @@ class CharacterManager {
var name = completeConfiguration[i]
switch i {
case 4:
if let index = name.last?.wholeNumberValue, [2,3,4].contains(index) {
if let index = name.last?.wholeNumberValue, [2,3].contains(index) {
name = CharacterManager.flippedArms[index - 2]
}
case 5:
if let index = name.last?.wholeNumberValue, [2,3,4].contains(index) {
if let index = name.last?.wholeNumberValue, [2,3].contains(index) {
name = CharacterManager.flippedArms[index - 2]
}
case 6: name = name.replacingOccurrences(of: "BTHandsImages", with: "BTHandsRightImages")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment