Explorar el Código

Default Entity SetSpeed via LUA fix

Image hace 4 años
padre
commit
f2c72f60b1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      EQ2/source/WorldServer/LuaFunctions.cpp

+ 1 - 0
EQ2/source/WorldServer/LuaFunctions.cpp

@@ -1572,6 +1572,7 @@ int EQ2Emu_lua_SetSpeed(lua_State* state) {
 	lua_interface->ResetFunctionStack(state);
 	if (spawn) {
 		spawn->SetSpeed(value);
+		((Entity*)spawn)->SetSpeed(value);
 		if (spawn->IsPlayer()) {
 			Client* client = spawn->GetZone()->GetClientBySpawn(spawn);
 			if (client) {