This commit is contained in:
parent
ec8ff7ed5b
commit
396949c907
13 changed files with 142 additions and 6 deletions
|
@ -103,6 +103,10 @@
|
|||
#include "hazard\hrwheel.h"
|
||||
#endif
|
||||
|
||||
#ifndef __HAZARD_HPSWITCH_H__
|
||||
#include "hazard\hpswitch.h"
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
@ -126,6 +130,7 @@ CNpcHazard::NPC_HAZARD_UNIT_TYPE CNpcHazard::mapEditConvertTable[NPC_HAZARD_TYPE
|
|||
NPC_FLY_TRAP_HAZARD,
|
||||
NPC_RISING_WEIGHT_HAZARD,
|
||||
NPC_RISING_WEIGHT_WHEEL_HAZARD,
|
||||
NPC_PRESSURE_SWITCH_HAZARD,
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -246,6 +251,12 @@ CNpcHazard *CNpcHazard::Create(sThingHazard *ThisHazard)
|
|||
break;
|
||||
}
|
||||
|
||||
case NPC_PRESSURE_SWITCH_HAZARD:
|
||||
{
|
||||
hazard = new ("pressure switch hazard") CNpcPressureSwitchHazard;
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
hazard = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue