1
This commit is contained in:
parent
d58a670d5e
commit
5aaee97d08
@ -89,7 +89,7 @@ void Room::Update(int delta_time)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
real_alive_count_ = 0;
|
real_alive_count_stat_ = 0;
|
||||||
elapsed_time_ += delta_time;
|
elapsed_time_ += delta_time;
|
||||||
while (elapsed_time_ >= 50) {
|
while (elapsed_time_ >= 50) {
|
||||||
if (frame_no % 2 == 0) {
|
if (frame_no % 2 == 0) {
|
||||||
@ -104,6 +104,7 @@ void Room::Update(int delta_time)
|
|||||||
++frame_no;
|
++frame_no;
|
||||||
elapsed_time_ -= 50;
|
elapsed_time_ -= 50;
|
||||||
}
|
}
|
||||||
|
real_alive_count_ = real_alive_count_stat_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Room::GetPlayerNum()
|
int Room::GetPlayerNum()
|
||||||
|
@ -74,7 +74,7 @@ public:
|
|||||||
int GetPlayerNum();
|
int GetPlayerNum();
|
||||||
int AliveCount();
|
int AliveCount();
|
||||||
inline int RealAliveCount() { return real_alive_count_; }
|
inline int RealAliveCount() { return real_alive_count_; }
|
||||||
inline void IncRealAliveCount() { ++real_alive_count_; }
|
inline void IncRealAliveCount() { ++real_alive_count_stat_; }
|
||||||
int ActiveCount();
|
int ActiveCount();
|
||||||
Player* GetPlayerByAccountId(const std::string& accountid);
|
Player* GetPlayerByAccountId(const std::string& accountid);
|
||||||
Player* GetPlayerByUniId(int uniid);
|
Player* GetPlayerByUniId(int uniid);
|
||||||
@ -171,6 +171,7 @@ private:
|
|||||||
int elapsed_time_ = 0;
|
int elapsed_time_ = 0;
|
||||||
int alive_count_ = 0;
|
int alive_count_ = 0;
|
||||||
int real_alive_count_ = 0;
|
int real_alive_count_ = 0;
|
||||||
|
int real_alive_count_stat_ = 0;
|
||||||
int active_count_ = 0;
|
int active_count_ = 0;
|
||||||
int force_shua_android_times_ = 0;
|
int force_shua_android_times_ = 0;
|
||||||
MetaData::AirLine* airline_ = nullptr;
|
MetaData::AirLine* airline_ = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user