This commit is contained in:
aozhiwei 2020-07-22 19:05:00 +08:00
parent 8360e5f18f
commit f55fa5996b
3 changed files with 10 additions and 0 deletions

View File

@ -194,6 +194,12 @@ void Human::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_data
p->set_revive_countdown(countdown);
}
}
if (room->GetRoomMode() == kZombieMode) {
p->set_level(level_);
p->set_exp(exp_);
p->set_race(race_);
p->set_zombieid(zombieid_);
}
}
void Human::FillMFPlayerStats(cs::MFPlayerStats* stats_pb)

View File

@ -314,6 +314,9 @@ private:
void RemoveFromScene();
protected:
int level_ = 0;
int exp_ = 0;
int zombieid_ = 0;
long long last_shot_frameno_ = 0;
long long last_use_skill_frameno_ = 0;
long long hide_frameno_ = 0;

View File

@ -1333,6 +1333,7 @@ void Player::PushJoinRoomMsg()
{
cs::SMJoinedNotify notifymsg;
notifymsg.set_error_code(0);
notifymsg.set_room_mode((int)room->GetRoomMode());
room->FillSMJoinedNotify(this, notifymsg);
GGListener::Instance()->SendToClient(socket_handle, 0, notifymsg);
}