]> git.jsancho.org Git - lugaru.git/commitdiff
It makes no sense to use a player id as key for skinText
authorCôme Chilliet <come@chilliet.eu>
Sat, 26 Nov 2016 08:57:38 +0000 (16:57 +0800)
committerCôme Chilliet <come@chilliet.eu>
Sat, 26 Nov 2016 08:57:38 +0000 (16:57 +0800)
Source/ConsoleCmds.cpp
Source/GameTick.cpp

index 4f3dfe1a5e3bd3d1e5a2836b6c37397f60e1d0fb..698c73bf2cc553ab052a636c8e810f75e38b5579 100644 (file)
@@ -141,7 +141,7 @@ static void set_clothes(int pnum, const char *args)
     char buf[64];
     snprintf(buf, 63, ":Data:Textures:%s.png", args);
 
-    if (!AddClothes(buf, &Person::players[pnum]->skeleton.skinText[pnum]))
+    if (!AddClothes(buf, &Person::players[pnum]->skeleton.skinText[0]))
         return;
 
     Person::players[pnum]->DoMipmaps();
index ea591632aaa143dd4a42aa6badb6c22f98e3d051..3d492fdaeae50c54b6d6e4c59421b24017106132 100644 (file)
@@ -2133,7 +2133,7 @@ void doDebugKeys()
                 if (Person::players[closest]->creature == rabbittype) {
                     Person::players[closest]->skeleton.id = closest;
                     Person::players[closest]->skeleton.Load((char *)":Data:Skeleton:Basic Figure Wolf", (char *)":Data:Skeleton:Basic Figure Wolf Low", (char *)":Data:Skeleton:Rabbitbelt", (char *)":Data:Models:Wolf.solid", (char *)":Data:Models:Wolf2.solid", (char *)":Data:Models:Wolf3.solid", (char *)":Data:Models:Wolf4.solid", (char *)":Data:Models:Wolf5.solid", (char *)":Data:Models:Wolf6.solid", (char *)":Data:Models:Wolf7.solid", (char *)":Data:Models:Wolflow.solid", (char *)":Data:Models:Belt.solid", 0);
-                    Person::players[closest]->skeleton.drawmodel.textureptr.load(":Data:Textures:Wolf.jpg", 1, &Person::players[closest]->skeleton.skinText[closest], &Person::players[closest]->skeleton.skinsize);
+                    Person::players[closest]->skeleton.drawmodel.textureptr.load(":Data:Textures:Wolf.jpg", 1, &Person::players[closest]->skeleton.skinText[0], &Person::players[closest]->skeleton.skinsize);
                     Person::players[closest]->whichskin = 0;
                     Person::players[closest]->creature = wolftype;