View Single Post
  #1  
Old 12-14-2006, 12:25 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default Zoning heading...

Im not sure if the heading position works with zoning or not but this is a little fix ive had on my server for a while.. just thought id share it.

Code:
--- zoning.cpp	2006/06/20 02:03:51	1.1
+++ zoning.cpp	2006/06/21 06:07:41	1.2
@@ -295,10 +295,11 @@
 	x_pos = dest_x; //these coordinates will now be saved when ~client is called
 	y_pos = dest_y;
 	z_pos = dest_z;
+	heading = dest_h; // Cripp: fix for zone heading
 	m_pp.heading = dest_h;
 	m_pp.zone_id = zone_id;
 	
 	//Force a save so its waiting for them when they zone
 	Save();
 	
 	if (zone_id == zone->GetZoneID()) {
i also usually add a SendPosUpdate(2); right before the Save(); as well but im not really sure if thats necessary.. maybe FNW or someone can insight me.
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote