[Fix] Clear velocity when doing Pilot:warp()

This commit is contained in:
Allanis 2013-11-16 19:10:32 +00:00
parent d2067f9274
commit 2489949d30

View File

@ -412,6 +412,7 @@ static int pilotL_warp(lua_State* L) {
/* Warp pilot to new position. */
vectcpy(&p->solid->pos, &v->vec);
vectnull(&p->solid->vel); /* Clear velocity otherwise it's a bit weird. */
return 0;
}