diff --git a/src/PacketHandlers.c b/src/PacketHandlers.c index a2c413279..0687bdd1c 100644 --- a/src/PacketHandlers.c +++ b/src/PacketHandlers.c @@ -722,7 +722,7 @@ const char* cpe_clientExtensions[30] = { }; static void CPE_SetMapEnvUrl(uint8_t* data); -#define Ext_Deg2Packed(x) ((int16_t)((x) * 65536.0f / 360.0f)) +#define Ext_Deg2Packed(x) ((int)((x) * 65536.0f / 360.0f)) void CPE_WritePlayerClick(MouseButton button, bool pressed, uint8_t targetId, struct PickedPos* pos) { struct Entity* p = &LocalPlayer_Instance.Base; uint8_t* data = Server.WriteBuffer; diff --git a/src/Platform.c b/src/Platform.c index 46b8463a4..7281259be 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -1930,7 +1930,7 @@ ReturnCode Platform_StartProcess(const String* path, const String* args) { file = *path; Utils_UNSAFE_GetFilename(&file); String_InitArray(argv, argvBuffer); - String_Format2(&argv, "%s %s", &file, args); + String_Format2(&argv, "\"%s\" %s", &file, args); Platform_ConvertString(str, path); Platform_ConvertString(raw, &argv);