More cleanup of some QueryDatabase references that no longer need auto results

This commit is contained in:
Akkadius
2015-01-19 05:39:51 -06:00
parent 99baba4762
commit 98a49ad086
3 changed files with 5 additions and 17 deletions
+3 -11
View File
@@ -1250,16 +1250,11 @@ uint32 ZoneDatabase::AddWPForSpawn(Client *client, uint32 spawn2id, float xpos,
query = StringFormat("INSERT INTO grid SET id = '%i', zoneid = %i, type ='%i', type2 = '%i'",
grid_num, zoneid, type1, type2);
results = QueryDatabase(query);
if(!results.Success())
else if(client)
client->LogSQL(query.c_str());
QueryDatabase(query);
query = StringFormat("UPDATE spawn2 SET pathgrid = '%i' WHERE id = '%i'", grid_num, spawn2id);
results = QueryDatabase(query);
if(!results.Success())
else if(client)
client->LogSQL(query.c_str());
QueryDatabase(query);
}
else // NPC had a grid assigned to it
createdNewGrid = false;
@@ -1282,9 +1277,6 @@ uint32 ZoneDatabase::AddWPForSpawn(Client *client, uint32 spawn2id, float xpos,
"VALUES (%i, %i, %i, %f, %f, %f, %i, %f)",
grid_num, zoneid, next_wp_num, xpos, ypos, zpos, pause, heading);
results = QueryDatabase(query);
if(!results.Success())
else if(client)
client->LogSQL(query.c_str());
return createdNewGrid? grid_num: 0;
}