mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Changed void* to EQEmu::Any in quest interface. Been meaning to change from void* for a while to a structure that data hides instead.
This commit is contained in:
@@ -433,7 +433,7 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
||||
case CLIENT_CONNECTING: {
|
||||
if(ConnectingOpcodes.count(opcode) != 1) {
|
||||
//Hate const cast but everything in lua needs to be non-const even if i make it non-mutable
|
||||
std::vector<void*> args;
|
||||
std::vector<EQEmu::Any> args;
|
||||
args.push_back(const_cast<EQApplicationPacket*>(app));
|
||||
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 1, &args);
|
||||
|
||||
@@ -462,7 +462,7 @@ int Client::HandlePacket(const EQApplicationPacket *app)
|
||||
ClientPacketProc p;
|
||||
p = ConnectedOpcodes[opcode];
|
||||
if(p == nullptr) {
|
||||
std::vector<void*> args;
|
||||
std::vector<EQEmu::Any> args;
|
||||
args.push_back(const_cast<EQApplicationPacket*>(app));
|
||||
parse->EventPlayer(EVENT_UNHANDLED_OPCODE, this, "", 0, &args);
|
||||
|
||||
@@ -5986,7 +5986,7 @@ void Client::Handle_OP_ClickObject(const EQApplicationPacket *app)
|
||||
|
||||
object->HandleClick(this, click_object);
|
||||
|
||||
std::vector<void*> args;
|
||||
std::vector<EQEmu::Any> args;
|
||||
args.push_back(object);
|
||||
|
||||
char buf[10];
|
||||
@@ -6222,7 +6222,7 @@ void Client::Handle_OP_ClickDoor(const EQApplicationPacket *app)
|
||||
char buf[20];
|
||||
snprintf(buf, 19, "%u", cd->doorid);
|
||||
buf[19] = '\0';
|
||||
std::vector<void*> args;
|
||||
std::vector<EQEmu::Any> args;
|
||||
args.push_back(currentdoor);
|
||||
parse->EventPlayer(EVENT_CLICK_DOOR, this, buf, 0, &args);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user