mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
hateborne: grid assign match fix.
This commit is contained in:
parent
fc8cb2b5b7
commit
6028dbb4e5
@ -1100,12 +1100,13 @@ void ZoneDatabase::AssignGrid(Client *client, float x, float y, uint32 grid)
|
|||||||
matches = results.RowCount();
|
matches = results.RowCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (matches == 0) {
|
if (matches == 0)
|
||||||
|
{
|
||||||
client->Message(0, "ERROR: Unable to assign grid - can't find it in spawn2");
|
client->Message(0, "ERROR: Unable to assign grid - can't find it in spawn2");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(matches == 1)
|
if(matches > 1)
|
||||||
{
|
{
|
||||||
client->Message(0, "ERROR: Unable to assign grid - multiple spawn2 rows match");
|
client->Message(0, "ERROR: Unable to assign grid - multiple spawn2 rows match");
|
||||||
return;
|
return;
|
||||||
@ -1125,7 +1126,8 @@ void ZoneDatabase::AssignGrid(Client *client, float x, float y, uint32 grid)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (results.RowsAffected() != 1) {
|
if (results.RowsAffected() != 1)
|
||||||
|
{
|
||||||
client->Message(0, "ERROR: found spawn2 id %d but the update query failed", spawn2id);
|
client->Message(0, "ERROR: found spawn2 id %d but the update query failed", spawn2id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1133,7 +1135,8 @@ void ZoneDatabase::AssignGrid(Client *client, float x, float y, uint32 grid)
|
|||||||
if(client)
|
if(client)
|
||||||
client->LogSQL(query.c_str());
|
client->LogSQL(query.c_str());
|
||||||
|
|
||||||
if(!fuzzy) {
|
if (!fuzzy)
|
||||||
|
{
|
||||||
client->Message(0, "Grid assign: spawn2 id = %d updated - exact match", spawn2id);
|
client->Message(0, "Grid assign: spawn2 id = %d updated - exact match", spawn2id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user