1
This commit is contained in:
parent
130f7f945e
commit
e9055b5e49
@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "gridservice.h"
|
||||
|
||||
namespace cs
|
||||
{
|
||||
class MFObjectPart;
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "gridservice.h"
|
||||
#include "roomentity.h"
|
||||
|
||||
class MoveableEntity : public RoomEntity
|
||||
|
Loading…
x
Reference in New Issue
Block a user