Skip to content

Commit bced4b0

Browse files
committed
Minor Housekeeping
1 parent 892a057 commit bced4b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/TimeIsTime.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
static bool stimeistime_enable,
1515
stimeistime_announce;
16-
static uint32 sspeedtime;
1716
static float stimeistime_speed_rate;
1817

1918
class TimeIsTimeBeforeConfigLoad : public WorldScript {
@@ -42,10 +41,10 @@ class TimeIsTime : public PlayerScript {
4241
if (!stimeistime_enable)
4342
return;
4443

45-
sspeedtime = ((sWorld->GetGameTime() - sWorld->GetUptime()) + (sWorld->GetUptime() * stimeistime_speed_rate));
44+
uint32 speed_time = ((sWorld->GetGameTime() - sWorld->GetUptime()) + (sWorld->GetUptime() * stimeistime_speed_rate));
4645

4746
data.Initialize(SMSG_LOGIN_SETTIMESPEED, 4 + 4 + 4);
48-
data.AppendPackedTime(sspeedtime);
47+
data.AppendPackedTime(speed_time);
4948
data << float(0.01666667f) * stimeistime_speed_rate;
5049
data << uint32(0);
5150

0 commit comments

Comments
 (0)