Don't save the terrain slowdown as part of the state, it will get
updated on each client automatically.
This commit is contained in:
parent
50425ef59f
commit
e6d5e194d3
@ -344,6 +344,9 @@ void MaxSpeed::saveState(BareNetworkString *buffer) const
|
||||
uint8_t active_slowdown = 0;
|
||||
for(unsigned int i=MS_DECREASE_MIN, b=1; i<MS_DECREASE_MAX; i++, b <<=1)
|
||||
{
|
||||
// Don't bother saving terrain, this will get updated automatically
|
||||
// each frame.
|
||||
if(i==MS_DECREASE_TERRAIN) continue;
|
||||
if (m_speed_decrease[i].isActive())
|
||||
active_slowdown |= b;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user