mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 05:29:43 -04:00
Misc: Use override and final C++11 keywords in a few places (mostly scripts)
OVERRIDE and FINAL are TC macros (expand to nothing if compiler does not support C++11)
This commit is contained in:
@@ -35,7 +35,7 @@ class AT_example_areatrigger : public AreaTriggerScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/)
|
||||
bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/) OVERRIDE
|
||||
{
|
||||
player->Kill(player);
|
||||
return true;
|
||||
@@ -51,7 +51,7 @@ class ItemUse_example_item : public ItemScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/)
|
||||
bool OnUse(Player* /*player*/, Item* /*item*/, SpellCastTargets const& /*targets*/) OVERRIDE
|
||||
{
|
||||
sScriptMgr->LoadDatabase();
|
||||
return true;
|
||||
@@ -67,7 +67,7 @@ class GOHello_example_go_teleporter : public GameObjectScript
|
||||
{
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* /*go*/)
|
||||
bool OnGossipHello(Player* player, GameObject* /*go*/) OVERRIDE
|
||||
{
|
||||
player->TeleportTo(0, 1807.07f, 336.105f, 70.3975f, 0.0f);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user