diff options
author | Filippos Karapetis | 2009-02-15 12:23:16 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-15 12:23:16 +0000 |
commit | 25ddb004360a332ee1d362e5b34286d97242bc68 (patch) | |
tree | 78e5c5df6a91e2c4d05926ec22610ca7d21c793d /engines/sci/engine | |
parent | 8b38d0677ad3f2e1239f5a0acc1485176a9c61ac (diff) | |
download | scummvm-rg350-25ddb004360a332ee1d362e5b34286d97242bc68.tar.gz scummvm-rg350-25ddb004360a332ee1d362e5b34286d97242bc68.tar.bz2 scummvm-rg350-25ddb004360a332ee1d362e5b34286d97242bc68.zip |
Silenced more warnings
svn-id: r38230
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kmath.cpp | 2 | ||||
-rw-r--r-- | engines/sci/engine/kmovement.cpp | 2 | ||||
-rw-r--r-- | engines/sci/engine/scriptdebug.cpp | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/kmath.cpp b/engines/sci/engine/kmath.cpp index 4c8ebb8ec5..aa4d390cc2 100644 --- a/engines/sci/engine/kmath.cpp +++ b/engines/sci/engine/kmath.cpp @@ -59,7 +59,7 @@ get_angle(int xrel, int yrel) if ((xrel == 0) && (yrel == 0)) return 0; else { - int val = (int) (180.0/PI * atan2(xrel, -yrel)); + int val = (int) (180.0/PI * atan2((float)xrel, (float)-yrel)); if (val < 0) val += 360; diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index 1234a9028a..90e44a2ace 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -140,7 +140,7 @@ kSetJump(state_t *s, int funct_nr, int argc, reg_t *argv) // FIXME: This choice of vy makes t roughly (2+sqrt(2))/gy * sqrt(dy); // so if gy==3, then t is roughly sqrt(dy)... - vy = (int)sqrt(gy * abs(2 * dy)) + 1; + vy = (int)sqrt((float)gy * (float)abs(2 * dy)) + 1; } else { // As stated above, the vertical direction is correlated to the horizontal by the // (non-zero) factor c. diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index a2a1d2427d..d260fa3d49 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -3277,6 +3277,7 @@ c_type(state_t *s) } sciprintf("%s\n", invalid ? " (invalid)" : ""); + return 0; } int @@ -3403,6 +3404,7 @@ c_gc_list_reachable(state_t *s) apply_to_reg_t_hash_map(use_map, NULL, print_all_of_them); free_reg_t_hash_map (use_map); + return 0; } |