ketoo / NoahGameFrame

A fast, scalable, distributed game server engine/framework for C++, include the actor library, network library, can be used as a real time multiplayer game engine ( MMO RPG/MOBA ), which support C#/Lua script/ Unity3d, Cocos2dx and plan to support Unreal.
https://github.com/ketoo/NoahGameFrame/wiki
Apache License 2.0
3.92k stars 1.09k forks source link

NFWSModule::AddReceiveCallBack 绑定的pb消息回调无法触发 #280

Open littlefork opened 3 years ago

littlefork commented 3 years ago

bug

NFWSModule.cpp 中 NFWSModule::OnReceiveNetPack 缺少 msgID > 0 时触发回调函数的逻辑

建议

369行 else if (msgID == 0) 修改为 else

ketoo commented 3 years ago

确认bug。

因为 == 0 是text 消息,需要自己解包,因此无内置消息id。 而 > 0 是pb 的 binary消息。

ketoo commented 3 years ago

Fixed.