]> git.jsancho.org Git - lugaru.git/commitdiff
Fixed Wolves damage tolerance which was broken by f38eb24f446b94d592d97b24b315bb44bed...
authorCôme Chilliet <come@chilliet.eu>
Sun, 5 Feb 2017 21:48:49 +0000 (22:48 +0100)
committerCôme Chilliet <come@chilliet.eu>
Sun, 5 Feb 2017 21:48:49 +0000 (22:48 +0100)
Source/Objects/Person.cpp

index f020f5e67a9990f8423dbb6b05b71faea3d41944..abd35f9952349be276cd7f8e48ae2225a8e75937 100644 (file)
@@ -435,10 +435,13 @@ Person::Person(FILE* tfile, int mapvers, unsigned i)
 
     loaded = true;
 
+    if (creature == wolftype) {
+        damagetolerance = 300;
+    }
+
     if (scale < 0) {
         if (creature == wolftype) {
             scale = .23;
-            damagetolerance = 300;
         } else {
             scale = .2;
         }