Index: /branches/world_entities/src/world_entities/player.cc
===================================================================
--- /branches/world_entities/src/world_entities/player.cc	(revision 5573)
+++ /branches/world_entities/src/world_entities/player.cc	(revision 5574)
@@ -133,5 +133,5 @@
 
   this->weaponMan = new WeaponManager(this);
-  this->weaponMan->setSlotCount(10);
+  this->weaponMan->setSlotCount(6);
 
   this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
@@ -152,13 +152,13 @@
   this->weaponMan->setSlotPosition(5, Vector(-1.5, -.5, -.5));
   this->weaponMan->setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
-
-  this->weaponMan->setSlotPosition(6, Vector(-2.0, 0.1, -2.0));
-  this->weaponMan->setSlotPosition(7, Vector(-2.0, 0.1, 2.0));
-
-  this->weaponMan->setSlotPosition(8, Vector(-2.5, -0.3, -2.0));
-  this->weaponMan->setSlotDirection(8, Quaternion(-M_PI, Vector(1,0,0)));
-
-  this->weaponMan->setSlotPosition(9, Vector(-2.5, -0.3, 2.0));
-  this->weaponMan->setSlotDirection(9, Quaternion(+M_PI, Vector(1,0,0)));
+//
+//   this->weaponMan->setSlotPosition(6, Vector(-2.0, 0.1, -2.0));
+//   this->weaponMan->setSlotPosition(7, Vector(-2.0, 0.1, 2.0));
+//
+//   this->weaponMan->setSlotPosition(8, Vector(-2.5, -0.3, -2.0));
+//   this->weaponMan->setSlotDirection(8, Quaternion(-M_PI, Vector(1,0,0)));
+//
+//   this->weaponMan->setSlotPosition(9, Vector(-2.5, -0.3, 2.0));
+//   this->weaponMan->setSlotDirection(9, Quaternion(+M_PI, Vector(1,0,0)));:
 
 }
@@ -342,4 +342,7 @@
 {
   Weapon* turret = NULL;
+
+  printf("free slot: %d\n", this->weaponMan->getNextFreeSlot(3, WTYPE_TURRET | WTYPE_ALLDIRS));
+
   if ((float)rand()/RAND_MAX < .1)
   {
Index: /branches/world_entities/src/world_entities/weapons/aim.cc
===================================================================
--- /branches/world_entities/src/world_entities/weapons/aim.cc	(revision 5573)
+++ /branches/world_entities/src/world_entities/weapons/aim.cc	(revision 5574)
@@ -107,10 +107,10 @@
   while (likely(entity != NULL))
   {
-    if (entity->isA(CL_NPC) &&(source->getAbsCoor() - entity->getAbsCoor()).len() < 100)
+    if (entity->isA(CL_NPC) && source->getAbsCoor().x < entity->getAbsCoor().x && (source->getAbsCoor() - entity->getAbsCoor()).len() < 100)
     {
       if (this->getParent() != entity)
       {
         this->anim->replay();
-        this->setParentSoft(entity, 3);
+        this->setParentSoft(entity, 5);
       }
       delete iterator;
Index: /branches/world_entities/src/world_entities/weapons/aiming_turret.cc
===================================================================
--- /branches/world_entities/src/world_entities/weapons/aiming_turret.cc	(revision 5573)
+++ /branches/world_entities/src/world_entities/weapons/aiming_turret.cc	(revision 5574)
@@ -24,6 +24,5 @@
 
 #include "null_parent.h"
-#include "state.h"
-#include "list.h"
+
 #include "animation3d.h"
 #include "sound_engine.h"
@@ -67,5 +66,5 @@
 {
   // model will be deleted from WorldEntity-destructor
-  delete this->target;
+//  delete this->target;
 }
 
Index: /branches/world_entities/src/world_entities/weapons/weapon_manager.cc
===================================================================
--- /branches/world_entities/src/world_entities/weapons/weapon_manager.cc	(revision 5573)
+++ /branches/world_entities/src/world_entities/weapons/weapon_manager.cc	(revision 5574)
@@ -472,7 +472,10 @@
         (this->currentSlotConfig[i].capability & capability & WTYPE_ALLKINDS) &&
         (this->currentSlotConfig[i].capability & capability & WTYPE_ALLDIRS))
+        {
+        printf("%d %d %d %d\n", currentSlotConfig[i].capability, capability,  WTYPE_ALLKINDS, WTYPE_ALLDIRS);
+
       return i;
-  }
-  printf("SHIT\n");
+      }
+  }
   return -1;
 }
Index: /branches/world_entities/src/world_entities/weapons/weapon_manager.h
===================================================================
--- /branches/world_entities/src/world_entities/weapons/weapon_manager.h	(revision 5573)
+++ /branches/world_entities/src/world_entities/weapons/weapon_manager.h	(revision 5574)
@@ -92,5 +92,5 @@
     void debug() const;
 
-  private:
+ // private:
     int getNextFreeSlot(int configID, long capability = WTYPE_ALL);
 
