ref: 58bd5a3b42b38002e1f866e404feecbe9e8b0680
parent: c4ae5eac672e5867155ce345afbac91cfddfd2c2
author: Tanguy Fautre <tanguy@fautre.com>
date: Fri Feb 21 18:42:43 EST 2020
Fixed Linux savegames loading. Removed a few compilation warnings.
--- a/Engine/src/draw.c
+++ b/Engine/src/draw.c
@@ -411,9 +411,10 @@
uintptr_t index = (framebuffer + ylookup[columnIndex]);
uint8_t *dest= (uint8_t *)(-ylookup[columnIndex]);
- //uint8_t *dest= (uint8_t *)framebuffer;
-
- //uint32_t index = 0;
+// uint8_t *dest= (uint8_t *)framebuffer;
+// uint32_t index = 0;
+// uint32_t length = ylookup[columnIndex];
+
do {
for (i = 0; i < 4; i++)
{
--- a/Engine/src/unix_compat.h
+++ b/Engine/src/unix_compat.h
@@ -44,6 +44,4 @@
#include <dirent.h>
#include <string.h>
-#define USER_DUMMY_NETWORK 1
-
#endif
--- a/Game/src/dukeunix.h
+++ b/Game/src/dukeunix.h
@@ -65,12 +65,6 @@
#define max(x, y) ((x) > (y) ? (x) : (y))
#endif
-
-
-#ifndef strcmpi
-#define strcmpi(x, y) strcasecmp(x, y)
-#endif
-
#ifdef DC
#undef stderr
#undef stdout
--- a/Game/src/menues.c
+++ b/Game/src/menues.c
@@ -541,7 +541,6 @@
int saveplayer(int8_t spot)
{
int32_t i;
- intptr_t j;
char fn[] = "game0.sav";
char mpfn[] = "gameA_00.sav";
char* fnptr, scriptptrs[MAXSCRIPTSIZE];