This commit is contained in:
aozhiwei 2020-05-30 20:20:06 +08:00
parent 130f7f945e
commit e9055b5e49
3 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,5 @@
#pragma once
#include "gridservice.h"
namespace cs
{
class MFObjectPart;

View File

@ -2260,7 +2260,7 @@ void Human::ProcLootCar(Loot* entity, MetaData::Equip* item_meta)
}
if (car_.car_id != 0) {
int entity_uniid = room->CreateLoot(car_.car_id, GetPos(), 1, 1);
Entity* loot_entity = room->GetEntityByUniId(GetEntityUniId());
Entity* loot_entity = room->GetEntityByUniId(entity_uniid);
if (loot_entity && loot_entity->IsEntityType(ET_Loot)) {
((Loot*)loot_entity)->bullet_num = 0;
((Loot*)loot_entity)->param1 = 0;

View File

@ -1,5 +1,6 @@
#pragma once
#include "gridservice.h"
#include "roomentity.h"
class MoveableEntity : public RoomEntity