Browse Source

größe eines Pfeils angepasst

Kolja Strohm 5 years ago
parent
commit
d0bc8d3096
1 changed files with 16 additions and 4 deletions
  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
     {