SourceForge has been redesigned. Learn more.

#552 scale option for vmapfile

Player (393)

This patch modifies the vmapfile driver, adding a scale option. This option allows the use of a multiplier in order to convert a map defined in something not meters into meters, without modifying the source map.

Also, the computation of width and height of the map has been refactored to automatically extract it from the read vectors, instead of taking it from the mapfile.

The diff has been taken with svn diff, inside the player/server/drivers/map (at release-3-0-1 tag)


  • Paul Osmialowski

    can you change use of fmin() and fmax() functions into preprocessor macors like these?:
    #ifndef FMIN
    #define FMIN(a, b) (((a) < (b)) : (a) : (b))
    #ifndef FMAX
    #define FMAX(a, b) (((a) > (b)) : (a) : (b))
    fmin/fmax functions are C99 additions while pre-C99 compilers are still in use in certain places where I'm using Player.

  • Toby Collett

    Toby Collett - 2010-05-03
    • status: open --> closed-accepted
  • Toby Collett

    Toby Collett - 2010-05-03

    The changes have been made in SVN trunk.
    Thank you for your contribution.


Log in to post a comment.