aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-21 22:38:23 +1100
committerStrangerke2012-04-06 08:20:37 +0200
commite4a9586d74bb9c4ec8add26b63adf2a6ebe27d14 (patch)
tree17c79c8d929e70b0a4c4bae0274d9c6be59541cf /engines/mortevielle
parente9f59153dbd47a83fdd3b305b6dfb6b1378823be (diff)
downloadscummvm-rg350-e4a9586d74bb9c4ec8add26b63adf2a6ebe27d14.tar.gz
scummvm-rg350-e4a9586d74bb9c4ec8add26b63adf2a6ebe27d14.tar.bz2
scummvm-rg350-e4a9586d74bb9c4ec8add26b63adf2a6ebe27d14.zip
MORTEVIELLE: Change float parameters in chardes/charani to int32
The original used this to handle 32-bit values. So it's cleaner to use int32 explicitly.
Diffstat (limited to 'engines/mortevielle')
-rw-r--r--engines/mortevielle/taffich.cpp10
-rw-r--r--engines/mortevielle/taffich.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/mortevielle/taffich.cpp b/engines/mortevielle/taffich.cpp
index 77733b8829..55fdbb7442 100644
--- a/engines/mortevielle/taffich.cpp
+++ b/engines/mortevielle/taffich.cpp
@@ -35,7 +35,7 @@
namespace Mortevielle {
-void chardes(Common::String nom, float passe, int long_) {
+void chardes(Common::String nom, int32 passe, int long_) {
int i, p, l;
// byte b;
Common::File f;
@@ -52,7 +52,7 @@ void chardes(Common::String nom, float passe, int long_) {
}
if (p != 0)
f.seek(p * 0x80);
- p = abs((int)passe);
+ p = abs(passe);
l = long_ + p;
i = 0;
while (l > 0) {
@@ -68,7 +68,7 @@ void chardes(Common::String nom, float passe, int long_) {
/*$i+*/
}
-void charani(Common::String nom, float passe, int long_) {
+void charani(Common::String nom, int32 passe, int long_) {
int i, p, l;
// byte b;
Common::File f;
@@ -86,7 +86,7 @@ void charani(Common::String nom, float passe, int long_) {
if (p != 0)
f.seek(p * 0x80);
- p = abs((int)passe);
+ p = abs(passe);
l = long_ + p;
i = 0;
while (l > 0) {
@@ -106,7 +106,7 @@ void taffich() {
int i, m, a, b, cx, handle,
npal;
- float lgt;
+ int32 lgt;
Common::String nom;
int palh, k, j;
int alllum[16];
diff --git a/engines/mortevielle/taffich.h b/engines/mortevielle/taffich.h
index bea3c09f2a..a6acce21eb 100644
--- a/engines/mortevielle/taffich.h
+++ b/engines/mortevielle/taffich.h
@@ -32,8 +32,8 @@
namespace Mortevielle {
-extern void chardes(Common::String nom, float passe, int long_);
-extern void charani(Common::String nom, float passe, int long_);
+extern void chardes(Common::String nom, int32 passe, int long_);
+extern void charani(Common::String nom, int32 passe, int long_);
extern void taffich();
} // End of namespace Mortevielle