footstep fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1852 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-05-03 21:57:40 +00:00
parent 3d8602e66c
commit fd1f8fa0d9
+4 -1
View File
@@ -552,6 +552,7 @@ void soundcleanup()
void clearsounds()
{
mapsounds.setsizenodelete(0);
loopv(locations) locations[i].reset();
locations.setsizenodelete(0);
}
@@ -729,8 +730,9 @@ void playsound(int n, physent *p, entity *ent, const vec *v, int priority)
}
}
}
if(farthestscore >= score+5.0f) // better don't play a new one than stopping a playing sound
if(farthestscore >= score+5.0f)
{
loc = farthest;
conoutf("ac sound sched: replaced sound of same prio"); // FIXME
}
}
@@ -742,6 +744,7 @@ void playsound(int n, physent *p, entity *ent, const vec *v, int priority)
}
loc->reset();
loc->priority = priority;
// attach to world obj
if(p) loc->attachtoworldobj(p);