mirror of
				https://bitbucket.org/Ioncannon/project-meteor-server.git
				synced 2025-05-20 08:26:59 -04:00 
			
		
		
		
	Default speeds were not being set, and on actor load *currentSpeed* wasn't being loaded.
This commit is contained in:
		| @@ -68,7 +68,7 @@ namespace FFXIVClassic_Map_Server.Actors | |||||||
|  |  | ||||||
|         public SubPacket CreateSpeedPacket(uint playerActorId) |         public SubPacket CreateSpeedPacket(uint playerActorId) | ||||||
|         { |         { | ||||||
|             return SetActorSpeedPacket.BuildPacket(actorId, playerActorId); |             return SetActorSpeedPacket.BuildPacket(actorId, playerActorId, moveSpeeds[0], moveSpeeds[1], moveSpeeds[2]); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         public SubPacket CreateSpawnPositonPacket(uint playerActorId, uint spawnType) |         public SubPacket CreateSpawnPositonPacket(uint playerActorId, uint spawnType) | ||||||
|   | |||||||
| @@ -133,6 +133,11 @@ namespace FFXIVClassic_Map_Server.Actors | |||||||
|             className = "Player"; |             className = "Player"; | ||||||
|             currentSubState = SetActorStatePacket.SUB_STATE_PLAYER; |             currentSubState = SetActorStatePacket.SUB_STATE_PLAYER; | ||||||
|  |  | ||||||
|  |             moveSpeeds[0] = SetActorSpeedPacket.DEFAULT_STOP; | ||||||
|  |             moveSpeeds[1] = SetActorSpeedPacket.DEFAULT_WALK; | ||||||
|  |             moveSpeeds[2] = SetActorSpeedPacket.DEFAULT_RUN; | ||||||
|  |             moveSpeeds[3] = SetActorSpeedPacket.DEFAULT_RUN; | ||||||
|  |  | ||||||
|             inventories[Inventory.NORMAL] = new Inventory(this, MAXSIZE_INVENTORY_NORMAL, Inventory.NORMAL); |             inventories[Inventory.NORMAL] = new Inventory(this, MAXSIZE_INVENTORY_NORMAL, Inventory.NORMAL); | ||||||
|             inventories[Inventory.KEYITEMS] = new Inventory(this, MAXSIZE_INVENTORY_KEYITEMS, Inventory.KEYITEMS); |             inventories[Inventory.KEYITEMS] = new Inventory(this, MAXSIZE_INVENTORY_KEYITEMS, Inventory.KEYITEMS); | ||||||
|             inventories[Inventory.CURRENCY] = new Inventory(this, MAXSIZE_INVENTORY_CURRANCY, Inventory.CURRENCY); |             inventories[Inventory.CURRENCY] = new Inventory(this, MAXSIZE_INVENTORY_CURRANCY, Inventory.CURRENCY); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user