Sets % to execute like the ASM used to.

This commit is contained in:
grinvader
2005-03-01 18:02:51 +00:00
parent bb8a914a83
commit a2624e85d5

View File

@@ -1627,12 +1627,14 @@ extern unsigned char per2exec;
void Setper2exec() void Setper2exec()
{ {
opexec268 = (unsigned char)(opexec268*(per2exec*0.01)); if (per2exec != 100)
opexec358 = (unsigned char)(opexec358*(per2exec*0.01)); { // Decrease standard % of execution by 5% to replace branch and 16bit
opexec268b = (unsigned char)(opexec268b*(per2exec*0.01)); // cycle deductions
opexec358b = (unsigned char)(opexec358b*(per2exec*0.01)); opexec268b = (unsigned char)((opexec268 * 95 * per2exec) / 10000);
opexec268cph = (unsigned char)(opexec268cph*(per2exec*0.01)); opexec358b = (unsigned char)((opexec358 * 87 * per2exec) / 10000); // 82
opexec358cph = (unsigned char)(opexec358cph*(per2exec*0.01)); opexec268cphb = (unsigned char)((opexec268cph * 95 * per2exec) / 10000);
opexec358cphb = (unsigned char)((opexec358cph * 87 * per2exec) / 10000); // 82
}
} }
extern char FEOEZPath[1024]; extern char FEOEZPath[1024];