1
This commit is contained in:
parent
04c0fe79e2
commit
88bebccc54
@ -87,6 +87,14 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg, int& game_times)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
time_t register_time = f8::ExtractRegisterTimeFromSessionId(msg.session_id());
|
||||||
|
#if 1
|
||||||
|
if (a8::BetweenDays(Global::g_nowtime, register_time) <= 0) {
|
||||||
|
return RT_OldBrid1;
|
||||||
|
} else {
|
||||||
|
return RT_OldBrid2;
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (rank >= 0 && rank <= 10) {
|
if (rank >= 0 && rank <= 10) {
|
||||||
return RT_OldBrid1;
|
return RT_OldBrid1;
|
||||||
} else if (rank >= 11 && rank <= 17) {
|
} else if (rank >= 11 && rank <= 17) {
|
||||||
@ -96,6 +104,7 @@ static RoomType_e GetHumanRoomType(const cs::CMJoin& msg, int& game_times)
|
|||||||
} else {
|
} else {
|
||||||
return RT_OldBrid1;
|
return RT_OldBrid1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void RoomMgr::Init()
|
void RoomMgr::Init()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user