Просмотр исходного кода

größe eines Pfeils angepasst

Kolja Strohm 5 лет назад
Родитель
Сommit
d0bc8d3096
1 измененных файлов с 16 добавлено и 4 удалено
  1. 16 4
      StickmanWorldOnline/Geschoss.cpp

+ 16 - 4
StickmanWorldOnline/Geschoss.cpp

@@ -8,9 +8,15 @@ Geschoss::Geschoss( int id, float speed, GeschossTyp typ, Richtung r, int x, int
     if( typ == GESCHOSS_PFEIL )
     {
         if( r == OBEN || r == UNTEN )
-            setHeight( 50 );
+        {
+            setWidth( 7 );
+            setHeight( 30 );
+        }
         else
-            setWidth( 50 );
+        {
+            setWidth( 30 );
+            setHeight( 7 );
+        }
     }
     this->speed = speed;
     this->richtung = richtung;
@@ -75,9 +81,15 @@ void Geschoss::setTyp( GeschossTyp typ )
     if( typ == GESCHOSS_PFEIL )
     {
         if( richtung == OBEN || richtung == UNTEN )
-            setHeight( 50 );
+        {
+            setWidth( 7 );
+            setHeight( 30 );
+        }
         else
-            setWidth( 50 );
+        {
+            setWidth( 30 );
+            setHeight( 7 );
+        }
     }
     else
     {