mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Fix typo on database call in #object.
Fix issue with fishing.. Search needs to search from my z for full line length not for only the diff between my feet and the possible water location.
This commit is contained in:
parent
1f065d7d3d
commit
7c377e8904
@ -8746,9 +8746,9 @@ void command_object(Client *c, const Seperator *sep)
|
||||
// Verify no other objects already in this spot (accidental double-click of Hotkey?)
|
||||
query = StringFormat(
|
||||
"SELECT COUNT(*) FROM object WHERE zoneid = %u "
|
||||
"AND version=%u AND (posx BETWEEN %.1f AND %.1f) "
|
||||
"AND (posy BETWEEN %.1f AND %.1f) "
|
||||
"AND (posz BETWEEN %.1f AND %.1f)",
|
||||
"AND version=%u AND (xpos BETWEEN %.1f AND %.1f) "
|
||||
"AND (ypos BETWEEN %.1f AND %.1f) "
|
||||
"AND (zpos BETWEEN %.1f AND %.1f)",
|
||||
zone->GetZoneID(), zone->GetInstanceVersion(), od.x - 0.2f,
|
||||
od.x + 0.2f, // Yes, we're actually using a bounding box instead of a radius.
|
||||
od.y - 0.2f, od.y + 0.2f, // Much less processing power used this way.
|
||||
|
||||
@ -196,7 +196,7 @@ bool Client::CanFish() {
|
||||
|
||||
float step_size = RuleR(Watermap, FishingLineStepSize);
|
||||
|
||||
for(float i = 0.0f; i < len; i += step_size) {
|
||||
for(float i = 0.0f; i < LineLength; i += step_size) {
|
||||
glm::vec3 dest(rodPosition.x, rodPosition.y, m_Position.z - i);
|
||||
|
||||
bool in_lava = zone->watermap->InLava(dest);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user