remove unuse code
This commit is contained in:
parent
5f58b93274
commit
2bd5a9bba4
@ -30,7 +30,6 @@ class Entity
|
|||||||
|
|
||||||
int grid_id = 0;
|
int grid_id = 0;
|
||||||
std::set<GridCell*> grid_list;
|
std::set<GridCell*> grid_list;
|
||||||
Entity* last_collision_door = nullptr;
|
|
||||||
|
|
||||||
Entity();
|
Entity();
|
||||||
virtual ~Entity();
|
virtual ~Entity();
|
||||||
|
@ -77,6 +77,8 @@ class Human : public Entity
|
|||||||
bool need_sync_teammate_data = false;
|
bool need_sync_teammate_data = false;
|
||||||
bool need_sync_active_player = false;
|
bool need_sync_active_player = false;
|
||||||
|
|
||||||
|
Entity* last_collision_door = nullptr;
|
||||||
|
|
||||||
PlayerStats stats;
|
PlayerStats stats;
|
||||||
|
|
||||||
std::set<Human*>* team_members = nullptr;
|
std::set<Human*>* team_members = nullptr;
|
||||||
|
@ -190,37 +190,14 @@ void Player::UpdateUseItemIdx()
|
|||||||
switch (use_item_idx) {
|
switch (use_item_idx) {
|
||||||
case IS_HEALTHKIT:
|
case IS_HEALTHKIT:
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
MetaData::Equip* item_meta = MetaMgr::Instance()->GetEquipBySlotId(use_item_idx);
|
|
||||||
if (item_meta) {
|
|
||||||
StartAction(
|
|
||||||
AT_UseItem,
|
|
||||||
item_meta->i->use_time(),
|
|
||||||
use_item_idx,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IS_PAIN_KILLER:
|
case IS_PAIN_KILLER:
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
MetaData::Equip* item_meta = MetaMgr::Instance()->GetEquipBySlotId(use_item_idx);
|
|
||||||
if (item_meta) {
|
|
||||||
StartAction(
|
|
||||||
AT_UseItem,
|
|
||||||
item_meta->i->use_time(),
|
|
||||||
use_item_idx,
|
|
||||||
0
|
|
||||||
);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user