summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-12-25 10:56:31 +0100
committerGitHub <noreply@github.com>2020-12-25 10:56:31 +0100
commit3b85457020a7334f1b96e3ee9618c9377d5edbd7 (patch)
tree380178eb341e070ad953ac2be17786a5ff722c94 /src/peds
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
parentsigned/unsigned fixes, and some other fixes (diff)
downloadre3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar.gz
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar.bz2
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar.lz
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar.xz
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.tar.zst
re3-3b85457020a7334f1b96e3ee9618c9377d5edbd7.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/PedType.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/peds/PedType.cpp b/src/peds/PedType.cpp
index e16fcee6..746eb3a5 100644
--- a/src/peds/PedType.cpp
+++ b/src/peds/PedType.cpp
@@ -47,7 +47,7 @@ CPedType::LoadPedData(void)
char *buf;
char line[256];
char word[32];
- size_t bp, buflen;
+ ssize_t bp, buflen;
int lp, linelen;
int type;
uint32 flags;
@@ -56,9 +56,9 @@ CPedType::LoadPedData(void)
type = NUM_PEDTYPES;
buf = new char[16 * 1024];
- CFileMgr::SetDir("DATA");
- buflen = CFileMgr::LoadFile("PED.DAT", (uint8*)buf, 16 * 1024, "r");
- CFileMgr::SetDir("");
+ CFileMgr::SetDir("DATA");
+ buflen = CFileMgr::LoadFile("PED.DAT", (uint8*)buf, 16 * 1024, "r");
+ CFileMgr::SetDir("");
for(bp = 0; bp < buflen; ){
// read file line by line
@@ -248,7 +248,7 @@ CPedStats::LoadPedStats(void)
char *buf;
char line[256];
char name[32];
- size_t bp, buflen;
+ ssize_t bp, buflen;
int lp, linelen;
int type;
float fleeDist, headingChangeRate, attackStrength, defendWeakness;