Port % of execution code to C

This commit is contained in:
pagefault
2003-11-22 21:30:05 +00:00
parent eec1b6400d
commit b37a7ecb5e
2 changed files with 13 additions and 57 deletions

View File

@@ -18,6 +18,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <string.h>
#include <windows.h>
//C++ style code in C
#define bool unsigned char
@@ -678,3 +679,12 @@ void headerhack()
return;
}
extern unsigned char per2exec;
void Setper2exec()
{
opexec268 = opexec268*(per2exec*0.01);
opexec358 = opexec358*(per2exec*0.01);
opexec268cph = opexec268cph*(per2exec*0.01);
opexec358cph = opexec358cph*(per2exec*0.01);
}