From 2489949d3077894c61e4e9855877fd20555da873 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 16 Nov 2013 19:10:32 +0000 Subject: [PATCH] [Fix] Clear velocity when doing Pilot:warp() --- src/llua_pilot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/llua_pilot.c b/src/llua_pilot.c index 4260f67..3f40d0f 100644 --- a/src/llua_pilot.c +++ b/src/llua_pilot.c @@ -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; }