fps fixed

This commit is contained in:
d1str4ught
2025-08-22 22:49:19 +02:00
parent 28ebb68c5a
commit 5c0fdf1a0b
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -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)
{