This commit is contained in:
xeon 2024-06-26 19:38:46 +03:00
parent e8b50bf352
commit 195d76a92c

View file

@ -70,7 +70,7 @@ const DummyCmdList = [_]struct { CmdID, CmdID }{
.{ CmdID.CmdGetMainMissionCustomValueCsReq, CmdID.CmdGetMainMissionCustomValueScRsp },
};
const SupressLogList = [_]CmdID{CmdID.CmdSceneEntityMoveCsReq};
const SuppressLogList = [_]CmdID{CmdID.CmdSceneEntityMoveCsReq};
pub fn handle(session: *Session, packet: *const Packet) !void {
var arena = ArenaAllocator.init(session.allocator);
@ -81,7 +81,7 @@ pub fn handle(session: *Session, packet: *const Packet) !void {
inline for (HandlerList) |handler| {
if (handler[0] == cmd_id) {
try handler[1](session, packet, arena.allocator());
if (!std.mem.containsAtLeast(CmdID, &SupressLogList, 1, &[_]CmdID{cmd_id})) {
if (!std.mem.containsAtLeast(CmdID, &SuppressLogList, 1, &[_]CmdID{cmd_id})) {
log.debug("packet {} was handled", .{cmd_id});
}
return;