Core/SAI: Remove SMART_ACTION_STORE_VARIABLE_DECIMAL

It's not used.
This commit is contained in:
DDuarte
2014-09-16 23:22:01 +01:00
parent 2a262aad21
commit af7daba02d
4 changed files with 1 additions and 10 deletions

View File

@@ -1263,13 +1263,6 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
delete targets;
break;
}
case SMART_ACTION_STORE_VARIABLE_DECIMAL:
{
if (mStoredDecimals.find(e.action.storeVar.id) != mStoredDecimals.end())
mStoredDecimals.erase(e.action.storeVar.id);
mStoredDecimals[e.action.storeVar.id] = e.action.storeVar.number;
break;
}
case SMART_ACTION_STORE_TARGET_LIST:
{
ObjectList* targets = GetTargets(e, unit);

View File

@@ -231,7 +231,6 @@ class SmartScript
SmartScriptType mScriptType;
uint32 mEventPhase;
std::unordered_map<int32, int32> mStoredDecimals;
uint32 mPathId;
SmartAIEventList mStoredEvents;
std::list<uint32>mRemIDs;

View File

@@ -1017,7 +1017,6 @@ bool SmartAIMgr::IsEventValid(SmartScriptHolder& e)
case SMART_ACTION_DIE:
case SMART_ACTION_SET_IN_COMBAT_WITH_ZONE:
case SMART_ACTION_SET_ACTIVE:
case SMART_ACTION_STORE_VARIABLE_DECIMAL:
case SMART_ACTION_WP_RESUME:
case SMART_ACTION_KILL_UNIT:
case SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL:

View File

@@ -479,7 +479,7 @@ enum SMART_ACTION
SMART_ACTION_SET_FLY = 60, // 0/1
SMART_ACTION_SET_SWIM = 61, // 0/1
SMART_ACTION_TELEPORT = 62, // mapID,
SMART_ACTION_STORE_VARIABLE_DECIMAL = 63, // varID, number
// 63 unused
SMART_ACTION_STORE_TARGET_LIST = 64, // varID,
SMART_ACTION_WP_RESUME = 65, // none
SMART_ACTION_SET_ORIENTATION = 66, //