~ubuntu-branches/ubuntu/quantal/warzone2100/quantal

« back to all changes in this revision

Viewing changes to lib/framework/math_ext.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2011-05-21 16:31:49 UTC
  • mfrom: (1.1.18 upstream) (2.1.17 sid)
  • Revision ID: james.westby@ubuntu.com-20110521163149-oj2qkd97z0b14lqz
Tags: 2.3.8-1
* New upstream release
  - Refresh miniupnpc removal patch
  - Build and install new upstream docs
* Complies with latest policy, bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
        This file is part of Warzone 2100.
3
3
        Copyright (C) 1999-2004  Eidos Interactive
4
 
        Copyright (C) 2005-2010  Warzone 2100 Project
 
4
        Copyright (C) 2005-2011  Warzone 2100 Project
5
5
 
6
6
        Warzone 2100 is free software; you can redistribute it and/or modify
7
7
        it under the terms of the GNU General Public License as published by
25
25
#ifndef MATH_EXT_H
26
26
#define MATH_EXT_H
27
27
 
28
 
#include "wzglobal.h"
29
28
#include <math.h>
30
 
#include <stdlib.h>
31
29
 
32
30
// Also PERCENT(int,int);       // returns a int value 0->100 of the percentage of the first param over the second
33
31
#define PERCENT(a,b) (((a)*100)/(b))