Permalink
Browse files

bug fixes

  • Loading branch information...
1 parent 6cdc9d9 commit 8cdb8352157102faf8b76d09c9ea4f2328ffbd25 @WASDi committed Apr 19, 2012
@@ -183,7 +183,7 @@ public void update(float tpf) {
walkDir.addLocal(camDir.negateLocal());
if(d)
walkDir.addLocal(camLeft.negateLocal());
- walkDir.multLocal(.5f); //TODO set to .2f for normal speed
+ walkDir.multLocal(.4f);
setWalkDirection(walkDir);
if(walkDir.length()!=0)
setViewDirection(walkDir);
@@ -80,6 +80,9 @@ public Npc getCloseNpc(Vector3f position){
float bestDistance = -1f;
for(Npc npc : npcList){
+ if(npc.getHp()<=0)
+ continue;
+
float distance = npc.getPosition().distance(position);
if(bestDistance==-1f){
closest = npc;
@@ -63,7 +63,7 @@ public void onStart() {
}
public void setPredefinedEndSay(String predefinedEndSay) {
- this.predefinedStartSay = predefinedEndSay;
+ this.predefinedEndSay = predefinedEndSay;
}
public void setPredefinedStartSay(String predefinedStartSay) {

0 comments on commit 8cdb835

Please sign in to comment.