#68 player.cc - three abs calls should be fabs

closed
nobody
None
5
2006-12-17
2006-05-21
Gord
No

I downloaded the source tarball for version 1.5a
and compiled them on Fedora Core 5

Here are my environment, allegro, and gcc versions:

Linux minidex.cool.com 2.6.16-1.2111_FC5 #1 Thu May 4
21:16:58 EDT 2006 i686 i686 i386 GNU/Linux

gcc-4.1.0-3
allegro-4.2.0-12.fc5
allegro-devel-4.2.0-12.fc5

Running make generates three compile time errors
requiring calls to "abs" to be changed to "fabs".

player.cc lines 1041, 1046, 1140

Some google searches suggested that this fix may
already be in place in the debian atanks package.

Discussion

  • cyberquiet
    cyberquiet
    2006-10-22

    Logged In: YES
    user_id=1404243

    I encountered the same problem. Replacing the three abs with
    fabs did the job for me too. I also get a bunch of warning
    about using allegro features which are now deprecated.

    OS: Kubuntu 6.06 Dapper
    g++ version: g++ (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    allegro version: 4.2.0

     
  • cyberquiet
    cyberquiet
    2006-10-22

    Logged In: YES
    user_id=1404243

    I forgot to say I'm using atanks version 1.1.0

     
  • Jesse Smith
    Jesse Smith
    2006-12-17

    • status: open --> closed