fps fixed
This commit is contained in:
@@ -7262,5 +7262,5 @@ int CHARACTER::GetSkillPowerByLevel(int level, bool bMob) const
|
||||
|
||||
void CHARACTER::SetLastPMPulse(void)
|
||||
{
|
||||
m_iLastPMPulse = thecore_pulse() + 25;
|
||||
m_iLastPMPulse = thecore_pulse() + passes_per_sec;
|
||||
}
|
||||
|
||||
@@ -5437,11 +5437,11 @@ bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount)
|
||||
PIXEL_POSITION pxPos = GetXYZ();
|
||||
|
||||
// Clear the variable, it looks the player does not dropped any item in the past second.
|
||||
if (thecore_pulse() > LastDropTime + 25)
|
||||
if (thecore_pulse() > LastDropTime + passes_per_sec)
|
||||
CountDrops = 0;
|
||||
|
||||
// It looks the player dropped min. 4 items in the past 1 second
|
||||
if (thecore_pulse() < LastDropTime + 25 && CountDrops >= 4)
|
||||
if (thecore_pulse() < LastDropTime + passes_per_sec && CountDrops >= 4)
|
||||
{
|
||||
// Set it to 0
|
||||
CountDrops = 0;
|
||||
|
||||
@@ -791,7 +791,7 @@ int start(int argc, char **argv)
|
||||
if (!bVerbose)
|
||||
freopen("stdout", "a", stdout);
|
||||
|
||||
bool is_thecore_initialized = thecore_init(25, heartbeat);
|
||||
bool is_thecore_initialized = thecore_init(passes_per_sec, heartbeat);
|
||||
|
||||
if (!is_thecore_initialized)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user