* Fix the .wp add command to output proper point starting at 1

* Thanks QAston (For Malcrom with love)

--HG--
branch : trunk
This commit is contained in:
Brian
2010-01-07 17:10:32 -07:00
parent 4276bd87b9
commit 7a43ad959f
+1 -1
View File
@@ -2338,7 +2338,7 @@ bool ChatHandler::HandleWpAddCommand(const char* args)
WorldDatabase.PExecuteLog("INSERT INTO waypoint_data (id, point, position_x, position_y, position_z) VALUES ('%u','%u','%f', '%f', '%f')",
pathid, point+1, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
PSendSysMessage("%s%s%u%s%u%s|r", "|cff00ff00", "PathID: |r|cff00ffff", pathid, "|r|cff00ff00: Waypoint |r|cff00ffff", point,"|r|cff00ff00 created. ");
PSendSysMessage("%s%s%u%s%u%s|r", "|cff00ff00", "PathID: |r|cff00ffff", pathid, "|r|cff00ff00: Waypoint |r|cff00ffff", point+1,"|r|cff00ff00 created. ");
return true;
} // HandleWpAddCommand