Core: Clean up script variables to make variables consistant/standardized, and some additional warning-removals:

+ Fix compilewarning in Unit.cpp
+ Remove/comment out unused parameters for some commandscripts/scripts (warnings)
+ Replace "plr" with "player" all over the scriptbase for consistency
This commit is contained in:
click committed 2011-07-01 03:00:39 +02:00
1 parent ed4c9986c1
commit a9c9ab0efa
35 files changed
+485 -485

No files matched your search

+5 -5
View File
@@ -698,15 +698,15 @@ public:
return false;
}
if (Player* plr = target->ToPlayer())
if (Player* player = target->ToPlayer())
{
// check online security
if (handler->HasLowerSecurity(plr, 0))
if (handler->HasLowerSecurity(player, 0))
return false;
handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink(plr).c_str());
if (handler->needReportToTarget(plr))
(ChatHandler(plr)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale);
handler->PSendSysMessage(LANG_YOU_CHANGE_SIZE, Scale, handler->GetNameLink(player).c_str());
if (handler->needReportToTarget(player))
(ChatHandler(player)).PSendSysMessage(LANG_YOURS_SIZE_CHANGED, handler->GetNameLink().c_str(), Scale);
}
target->SetFloatValue(OBJECT_FIELD_SCALE_X, Scale);