File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -124,30 +124,30 @@ class LuaEntitySAO : public ServerActiveObject
124
124
125
125
class LagPool
126
126
{
127
- float pool ;
128
- float max ;
127
+ float m_pool ;
128
+ float m_max ;
129
129
public:
130
- LagPool (): pool (15 ), max (15 )
130
+ LagPool (): m_pool (15 ), m_max (15 )
131
131
{}
132
132
void setMax (float new_max)
133
133
{
134
- max = new_max;
135
- if (pool > new_max)
136
- pool = new_max;
134
+ m_max = new_max;
135
+ if (m_pool > new_max)
136
+ m_pool = new_max;
137
137
}
138
138
void add (float dtime)
139
139
{
140
- pool -= dtime;
141
- if (pool < 0 )
142
- pool = 0 ;
140
+ m_pool -= dtime;
141
+ if (m_pool < 0 )
142
+ m_pool = 0 ;
143
143
}
144
144
bool grab (float dtime)
145
145
{
146
146
if (dtime <= 0 )
147
147
return true ;
148
- if (pool + dtime > max )
148
+ if (m_pool + dtime > m_max )
149
149
return false ;
150
- pool += dtime;
150
+ m_pool += dtime;
151
151
return true ;
152
152
}
153
153
};
You can’t perform that action at this time.
0 commit comments