[Fix] Clear velocity when doing Pilot:warp()
This commit is contained in:
parent
d2067f9274
commit
2489949d30
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user