This commit is contained in:
aozhiwei 2023-01-04 15:19:36 +08:00
parent b831901f37
commit de35a27a92
2 changed files with 5 additions and 2 deletions

View File

@ -855,6 +855,9 @@ void Human::DoJump()
MustBeAddBuff(this, JUMP_BUFFID); MustBeAddBuff(this, JUMP_BUFFID);
jump_frameno_ = room->GetFrameNo(); jump_frameno_ = room->GetFrameNo();
SyncAroundPlayers(__FILE__, __LINE__, __func__); SyncAroundPlayers(__FILE__, __LINE__, __func__);
#ifdef DEBUG
a8::XPrintf("DoJump\n", {});
#endif
} }
} }
@ -2508,7 +2511,7 @@ void Human::StartRefreshViewTimer()
return; return;
} }
refresh_view_timer_ = room->xtimer.SetIntervalWpEx refresh_view_timer_ = room->xtimer.SetIntervalWpEx
( (
SERVER_FRAME_RATE * mt::Param::s().refresh_view_time, SERVER_FRAME_RATE * mt::Param::s().refresh_view_time,
[this] (int event, const a8::Args* args) [this] (int event, const a8::Args* args)
{ {

View File

@ -435,7 +435,7 @@ bool MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& en
memset(hit_normal_, 0, sizeof(hit_normal_)); memset(hit_normal_, 0, sizeof(hit_normal_));
navmesh_query_->raycast(startRef, spos, epos, &filter, &t, hit_normal_, polys_, &npolys, MAX_POLYS); navmesh_query_->raycast(startRef, spos, epos, &filter, &t, hit_normal_, polys_, &npolys, MAX_POLYS);
#ifdef DEBUG #ifdef DEBUG1
{ {
std::string dbg_data = a8::Format("npolys:%d t:%f ", {npolys, t}); std::string dbg_data = a8::Format("npolys:%d t:%f ", {npolys, t});
for (int i = 0; i < npolys; ++i) { for (int i = 0; i < npolys; ++i) {