mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Merge from master
This commit is contained in:
+14
-15
@@ -58,7 +58,6 @@ And then at then end of embparser.cpp, add:
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <list>
|
||||
using namespace std;
|
||||
|
||||
#include "worldserver.h"
|
||||
#include "net.h"
|
||||
@@ -68,7 +67,7 @@ using namespace std;
|
||||
#include "zonedb.h"
|
||||
#include "../common/spdat.h"
|
||||
#include "../common/packet_functions.h"
|
||||
#include "../common/MiscFunctions.h"
|
||||
#include "../common/StringUtil.h"
|
||||
#include "spawn2.h"
|
||||
#include "zone.h"
|
||||
#include "event_codes.h"
|
||||
@@ -115,7 +114,7 @@ QuestManager::~QuestManager() {
|
||||
}
|
||||
|
||||
void QuestManager::Process() {
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end) {
|
||||
@@ -170,7 +169,7 @@ void QuestManager::EndQuest() {
|
||||
running_quest run = quests_running_.top();
|
||||
if(run.depop_npc && run.owner->IsNPC()) {
|
||||
//clear out any timers for them...
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end) {
|
||||
@@ -191,7 +190,7 @@ void QuestManager::EndQuest() {
|
||||
|
||||
void QuestManager::ClearAllTimers() {
|
||||
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end)
|
||||
@@ -459,7 +458,7 @@ void QuestManager::Zone(const char *zone_name) {
|
||||
void QuestManager::settimer(const char *timer_name, int seconds) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end) {
|
||||
@@ -479,7 +478,7 @@ void QuestManager::settimer(const char *timer_name, int seconds) {
|
||||
void QuestManager::settimerMS(const char *timer_name, int milliseconds) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end) {
|
||||
@@ -499,7 +498,7 @@ void QuestManager::settimerMS(const char *timer_name, int milliseconds) {
|
||||
void QuestManager::stoptimer(const char *timer_name) {
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end)
|
||||
@@ -516,7 +515,7 @@ void QuestManager::stoptimer(const char *timer_name) {
|
||||
void QuestManager::stopalltimers() {
|
||||
QuestManagerCurrentQuestVars();
|
||||
|
||||
list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
std::list<QuestTimer>::iterator cur = QTimerList.begin(), end, tmp;
|
||||
|
||||
end = QTimerList.end();
|
||||
while (cur != end)
|
||||
@@ -958,7 +957,7 @@ void QuestManager::givecash(int copper, int silver, int gold, int platinum) {
|
||||
{
|
||||
initiator->AddMoneyToPP(copper, silver, gold, platinum, true);
|
||||
|
||||
string tmp;
|
||||
std::string tmp;
|
||||
if (platinum > 0)
|
||||
{
|
||||
tmp = "You receive ";
|
||||
@@ -1265,7 +1264,7 @@ void QuestManager::setglobal(const char *varname, const char *newvalue, int opti
|
||||
}
|
||||
if (options < 0 || options > 7)
|
||||
{
|
||||
cerr << "Invalid options for global var " << varname << " using defaults" << endl;
|
||||
std::cerr << "Invalid options for global var " << varname << " using defaults" << std::endl;
|
||||
} // default = 0 (only this npcid,player and zone)
|
||||
else
|
||||
{
|
||||
@@ -1290,7 +1289,7 @@ int QuestManager::InsertQuestGlobal(
|
||||
char errbuf[MYSQL_ERRMSG_SIZE];
|
||||
|
||||
// Make duration string either "unix_timestamp(now()) + xxx" or "NULL"
|
||||
stringstream duration_ss;
|
||||
std::stringstream duration_ss;
|
||||
if (duration == INT_MAX)
|
||||
{
|
||||
duration_ss << "NULL";
|
||||
@@ -1309,7 +1308,7 @@ int QuestManager::InsertQuestGlobal(
|
||||
charid, npcid, zoneid, varname, varvalue, duration_ss.str().c_str()
|
||||
), errbuf, nullptr, nullptr, &last_id))
|
||||
{
|
||||
cerr << "setglobal error inserting " << varname << " : " << errbuf << endl;
|
||||
std::cerr << "setglobal error inserting " << varname << " : " << errbuf << std::endl;
|
||||
}
|
||||
safe_delete_array(query);
|
||||
|
||||
@@ -1395,7 +1394,7 @@ void QuestManager::delglobal(const char *varname) {
|
||||
" && (npcid=0 || npcid=%i) && (charid=0 || charid=%i) && (zoneid=%i || zoneid=0)",
|
||||
varname,qgNpcid,qgCharid,qgZoneid),errbuf))
|
||||
{
|
||||
cerr << "delglobal error deleting " << varname << " : " << errbuf << endl;
|
||||
std::cerr << "delglobal error deleting " << varname << " : " << errbuf << std::endl;
|
||||
}
|
||||
safe_delete_array(query);
|
||||
|
||||
@@ -1632,7 +1631,7 @@ void QuestManager::showgrid(int grid) {
|
||||
MYSQL_ROW row;
|
||||
|
||||
FindPerson_Point pt;
|
||||
vector<FindPerson_Point> pts;
|
||||
std::vector<FindPerson_Point> pts;
|
||||
|
||||
pt.x = initiator->GetX();
|
||||
pt.y = initiator->GetY();
|
||||
|
||||
Reference in New Issue
Block a user