mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Fix stuffs
This commit is contained in:
parent
456cc2943b
commit
eb8ea14fa7
5 changed files with 19 additions and 8 deletions
|
@ -1535,7 +1535,7 @@ namespace HISP.Server
|
|||
if(item.ItemId == Item.MagicBean)
|
||||
{
|
||||
double oldH = HorseInfo.CalculateHands(horseInstance.AdvancedStats.Height, false);
|
||||
int newHeight = RandomNumberGenerator.Next(horseInstance.Breed.BaseStats.MinHeight, horseInstance.Breed.BaseStats.MaxHeight);
|
||||
int newHeight = RandomNumberGenerator.Next(horseInstance.Breed.BaseStats.MinHeight, horseInstance.Breed.BaseStats.MaxHeight+1);
|
||||
double newH = HorseInfo.CalculateHands(newHeight, false);
|
||||
|
||||
horseInstance.AdvancedStats.Height = newHeight;
|
||||
|
@ -7563,6 +7563,11 @@ namespace HISP.Server
|
|||
|
||||
public static void UpdateArea(GameClient forClient)
|
||||
{
|
||||
if(forClient == null)
|
||||
{
|
||||
Logger.ErrorPrint(forClient.RemoteIp + "tried to update tile information when not connected.");
|
||||
return;
|
||||
}
|
||||
if (!forClient.LoggedIn)
|
||||
{
|
||||
Logger.ErrorPrint(forClient.RemoteIp + "tried to update tile information when not logged in.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue