Skip to content

Commit

Permalink
SWORD25: More int <-> int32 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Sep 28, 2013
1 parent 08c010b commit 9a1ddf0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions engines/sword25/gfx/animation.cpp
Expand Up @@ -553,15 +553,15 @@ bool Animation::persist(OutputPersistenceBlock &writer) {
writer.write(_currentFrameTime);
writer.write(_running);
writer.write(_finished);
writer.write(static_cast<uint>(_direction));
writer.write(static_cast<uint32>(_direction));

// Je nach Animationstyp entweder das Template oder die Ressource speichern.
if (_animationResourcePtr) {
uint marker = 0;
uint32 marker = 0;
writer.write(marker);
writer.writeString(_animationResourcePtr->getFileName());
} else if (_animationTemplateHandle) {
uint marker = 1;
uint32 marker = 1;
writer.write(marker);
writer.write(_animationTemplateHandle);
} else {
Expand All @@ -574,13 +574,13 @@ bool Animation::persist(OutputPersistenceBlock &writer) {

// The following is only there to for compatibility with older saves
// resp. the original engine.
writer.write((uint)1);
writer.write((uint32)1);
writer.writeString("LuaLoopPointCB");
writer.write(getHandle());
writer.write((uint)1);
writer.write((uint32)1);
writer.writeString("LuaActionCB");
writer.write(getHandle());
writer.write((uint)1);
writer.write((uint32)1);
writer.writeString("LuaDeleteCB");
writer.write(getHandle());

Expand All @@ -605,12 +605,12 @@ bool Animation::unpersist(InputPersistenceBlock &reader) {
reader.read(_currentFrameTime);
reader.read(_running);
reader.read(_finished);
uint direction;
uint32 direction;
reader.read(direction);
_direction = static_cast<Direction>(direction);

// Animationstyp einlesen.
uint marker;
uint32 marker;
reader.read(marker);
if (marker == 0) {
Common::String resourceFilename;
Expand All @@ -629,9 +629,9 @@ bool Animation::unpersist(InputPersistenceBlock &reader) {

// The following is only there to for compatibility with older saves
// resp. the original engine.
uint callbackCount;
uint32 callbackCount;
Common::String callbackFunctionName;
uint callbackData;
uint32 callbackData;

// loop point callback
reader.read(callbackCount);
Expand Down
2 changes: 1 addition & 1 deletion engines/sword25/gfx/animationdescription.cpp
Expand Up @@ -47,7 +47,7 @@ bool AnimationDescription::persist(OutputPersistenceBlock &writer) {
}

bool AnimationDescription::unpersist(InputPersistenceBlock &reader) {
uint animationType;
uint32 animationType;
reader.read(animationType);
_animationType = static_cast<Animation::ANIMATION_TYPES>(animationType);
reader.read(_FPS);
Expand Down
4 changes: 2 additions & 2 deletions engines/sword25/gfx/renderobject.h
Expand Up @@ -359,7 +359,7 @@ class RenderObject {
/**
@brief Gibt das Handle des Objekte zurück.
*/
uint getHandle() const {
uint32 getHandle() const {
return _handle;
}

Expand Down Expand Up @@ -475,7 +475,7 @@ class RenderObject {
/// Ist true, wenn das Objekt in nächsten Frame neu gezeichnet werden soll
bool _refreshForced;

uint _handle;
uint32 _handle;

/**
@brief Entfernt ein Objekt aus der Kinderliste.
Expand Down

0 comments on commit 9a1ddf0

Please sign in to comment.