mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 08:17:16 +00:00
heading should be a float so we don't convert to int all the time
This commit is contained in:
+5
-4
@@ -2727,7 +2727,7 @@ void command_texture(Client *c, const Seperator *sep)
|
|||||||
helm = texture;
|
helm = texture;
|
||||||
|
|
||||||
if (texture == 255) {
|
if (texture == 255) {
|
||||||
texture = 0xFFFF; // Should be pulling these from the database instead
|
texture = 0xFF; // Should be pulling these from the database instead
|
||||||
helm = 0xFF;
|
helm = 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -6005,8 +6005,9 @@ void command_wpadd(Client *c, const Seperator *sep)
|
|||||||
{
|
{
|
||||||
int type1=0,
|
int type1=0,
|
||||||
type2=0,
|
type2=0,
|
||||||
pause=0,
|
pause=0;
|
||||||
heading=-1; // Defaults for a new grid
|
|
||||||
|
float heading=-1.0f; // Defaults for a new grid
|
||||||
|
|
||||||
Mob *t=c->GetTarget();
|
Mob *t=c->GetTarget();
|
||||||
if (t && t->IsNPC())
|
if (t && t->IsNPC())
|
||||||
@@ -6030,7 +6031,7 @@ void command_wpadd(Client *c, const Seperator *sep)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (strcmp("-h",sep->arg[2]) == 0)
|
if (strcmp("-h",sep->arg[2]) == 0)
|
||||||
heading = (int)c->GetHeading();
|
heading = c->GetHeading();
|
||||||
uint32 tmp_grid = database.AddWPForSpawn(c, s2info->GetID(), c->GetX(),c->GetY(),c->GetZ(), pause, type1, type2, zone->GetZoneID(), heading);
|
uint32 tmp_grid = database.AddWPForSpawn(c, s2info->GetID(), c->GetX(),c->GetY(),c->GetZ(), pause, type1, type2, zone->GetZoneID(), heading);
|
||||||
if (tmp_grid)
|
if (tmp_grid)
|
||||||
t->CastToNPC()->SetGrid(tmp_grid);
|
t->CastToNPC()->SetGrid(tmp_grid);
|
||||||
|
|||||||
Reference in New Issue
Block a user