diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index a43984ab..5687a491 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -855,6 +855,9 @@ void Human::DoJump() MustBeAddBuff(this, JUMP_BUFFID); jump_frameno_ = room->GetFrameNo(); SyncAroundPlayers(__FILE__, __LINE__, __func__); +#ifdef DEBUG + a8::XPrintf("DoJump\n", {}); +#endif } } @@ -2508,7 +2511,7 @@ void Human::StartRefreshViewTimer() return; } refresh_view_timer_ = room->xtimer.SetIntervalWpEx - ( + ( SERVER_FRAME_RATE * mt::Param::s().refresh_view_time, [this] (int event, const a8::Args* args) { diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index e020f287..4c7ae4cb 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -435,7 +435,7 @@ bool MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& en memset(hit_normal_, 0, sizeof(hit_normal_)); 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}); for (int i = 0; i < npolys; ++i) {