oh yes - please submit patches. they are more than welcome. if you could upload the dmg somewhere, please let me know, then we will be able to mirror it.
diff --git a/src/client/cl_http.cpp b/src/client/cl_http.cpp
index 8767675..eb4cc67 100644
--- a/src/client/cl_http.cpp
+++ b/src/client/cl_http.cpp
@@ -189,7 +189,7 @@ static void CL_StartHTTPDownload (dlqueue_t* entry, dlhandle_t* dl)
curl_easy_setopt(dl->curl, CURLOPT_NOPROGRESS, 0);
if (dl->file) {
curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl->file);
- curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, nullptr);
+ curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
} else {
curl_easy_setopt(dl->curl, CURLOPT_WRITEDATA, dl);
curl_easy_setopt(dl->curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/common/http.cpp b/src/common/http.cpp
index 7c54d5a..912e389 100644
--- a/src/common/http.cpp
+++ b/src/common/http.cpp
@@ -184,7 +184,7 @@ static bool HTTP_GetURLInternal (dlhandle_t& dl, const char* url, FILE* file, co
curl_easy_setopt(dl.curl, CURLOPT_FAILONERROR, 1);
if (file) {
curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, file);
- curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, nullptr);
+ curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
} else {
curl_easy_setopt(dl.curl, CURLOPT_WRITEDATA, &dl);
curl_easy_setopt(dl.curl, CURLOPT_WRITEFUNCTION, HTTP_Recv);
diff --git a/src/game/g_ai.cpp b/src/game/g_ai.cpp
index abd9d89..bc4bb79 100644
--- a/src/game/g_ai.cpp
+++ b/src/game/g_ai.cpp
@@ -1164,8 +1164,8 @@ static bool AI_FindMissionLocation (Actor* actor, const pos3_t to)
if (!AI_CheckPosition(actor))
continue;
- const int distX = std::abs(actor->pos[0] - to[0]);
- const int distY = std::abs(actor->pos[1] - to[1]);
+ const int distX = abs(actor->pos[0] - to[0]);
+ const int distY = abs(actor->pos[1] - to[1]);
const int dist = distX + distY + std::max(distX, distY);
if (dist < bestDist) {
bestDist = dist;
Maybe some of them aren't correct, but it did compile and it seems to be working fine for now. I can upload it on MEGA and send you the link, if it's ok.
The hard part was to get all the needed libraries installed. As much as I tried with MacPorts I couldn't make it work, it was alwasy failing linking lua libraries at some point in the build. It finally worked with fink, after clearing everything installed with port, but there are a some missing dependencies in the wiki. I remember I also needed to install, on top of those listed,
libvorbis0,
libogg and
gettext-tools. Maybe some other too, not so sure now.