This commit is contained in:
aozhiwei 2021-03-24 11:00:15 +08:00
parent d8b4ddd1d5
commit 4edd0168eb
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#include "metamgr.h"
#include "car.h"
cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
cs::SMUpdate* FrameMaker::MakeUpdateMsg(Human* hum)
{
cs::SMUpdate* msg = new cs::SMUpdate;
{
@ -23,6 +23,11 @@ cs::SMUpdate* FrameMaker::MakeUpdateMsg(const Human* hum)
abort();
}
#endif
if (itr != hum &&
itr->GetEntityType() == ET_Player &&
((Human*)itr)->HasBuffEffect(kBET_Fly)){
continue;
}
if (hum->IsPlayer()) {
itr->FillMFObjectFull(room, (Human*)hum, msg->add_full_objects());
}

View File

@ -8,5 +8,5 @@ class FrameMaker
{
public:
cs::SMUpdate* MakeUpdateMsg(const Human* hum);
cs::SMUpdate* MakeUpdateMsg(Human* hum);
};