1
This commit is contained in:
parent
d8b4ddd1d5
commit
4edd0168eb
@ -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());
|
||||
}
|
||||
|
@ -8,5 +8,5 @@ class FrameMaker
|
||||
{
|
||||
public:
|
||||
|
||||
cs::SMUpdate* MakeUpdateMsg(const Human* hum);
|
||||
cs::SMUpdate* MakeUpdateMsg(Human* hum);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user