diff --git a/src/k_kart.c b/src/k_kart.c index 946aeacd..dec6b0d2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1883,10 +1883,10 @@ void K_SpinPlayer(player_t *player, mobj_t *source, INT32 type, boolean trapitem return; } } - + if (LUAh_MobjDamage(player->mo, inflictor, source, 1)) return; - + if (source && source != player->mo && source->player) K_PlayHitEmSound(source); @@ -2088,10 +2088,10 @@ void K_ExplodePlayer(player_t *player, mobj_t *source, mobj_t *inflictor) // A b return; } } - + if (LUAh_MobjDamage(player->mo, inflictor, source, 1)) return; - + if (source && source != player->mo && source->player) K_PlayHitEmSound(source); diff --git a/src/lua_baselib.c b/src/lua_baselib.c index 6eb998f7..c6d810c8 100644 --- a/src/lua_baselib.c +++ b/src/lua_baselib.c @@ -2251,7 +2251,7 @@ static int lib_kSpawnKartExplosion(lua_State *L) fixed_t x = luaL_checkfixed(L, 1); fixed_t y = luaL_checkfixed(L, 2); fixed_t z = luaL_checkfixed(L, 3); - fixed_t radius = (fixed_t)luaL_optinteger(L, 4, 32*FRACUNIT); + fixed_t radius = (fixed_t)luaL_optinteger(L, 4, 32*FRACUNIT); INT32 number = (INT32)luaL_optinteger(L, 5, 32); mobjtype_t type = luaL_optinteger(L, 6, MT_MINEEXPLOSION); angle_t rotangle = luaL_optinteger(L, 7, 0);