aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/people.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/people.cpp')
-rw-r--r--engines/sludge/people.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sludge/people.cpp b/engines/sludge/people.cpp
index 276edf5d75..dca541bc91 100644
--- a/engines/sludge/people.cpp
+++ b/engines/sludge/people.cpp
@@ -1062,14 +1062,14 @@ bool savePeople(Common::WriteStream *stream) {
me = allPeople;
for (a = 0; a < countPeople; a++) {
- putFloat(me->x, stream);
- putFloat(me->y, stream);
+ stream->writeFloatLE(me->x);
+ stream->writeFloatLE(me->y);
saveCostume(me->myPersona, stream);
saveAnim(me->myAnim, stream);
stream->writeByte(me->myAnim == me->lastUsedAnim);
- putFloat(me->scale, stream);
+ stream->writeFloatLE(me->scale);
stream->writeUint16BE(me->extra);
stream->writeUint16BE(me->height);
@@ -1136,15 +1136,15 @@ bool loadPeople(Common::SeekableReadStream *stream) {
if (!checkNew(me->myAnim))
return false;
- me->x = getFloat(stream);
- me->y = getFloat(stream);
+ me->x = stream->readFloatLE();
+ me->y = stream->readFloatLE();
loadCostume(me->myPersona, stream);
loadAnim(me->myAnim, stream);
me->lastUsedAnim = stream->readByte() ? me->myAnim : NULL;
- me->scale = getFloat(stream);
+ me->scale = stream->readFloatLE();
me->extra = stream->readUint16BE();
me->height = stream->readUint16BE();
@@ -1194,8 +1194,8 @@ bool loadPeople(Common::SeekableReadStream *stream) {
if (ssgVersion < VERSION(2, 0)) {
// aaLoad
stream->readByte();
- getFloat(stream);
- getFloat(stream);
+ stream->readFloatLE();
+ stream->readFloatLE();
}
}