1
This commit is contained in:
parent
8360e5f18f
commit
f55fa5996b
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user