So, regarding the title, I noticed some definitions in Map.cs. By defining Map_UseMaxRange, it will use GlobalMaxUpdateRange. Now, when you choose the screen sizes, a packet is sent that can set a max range to a netstate.
Screen sizes send the following update ranges:
Here is what I propose:
-NetState property gets set to a max update range when screen size is changed.
-Any update ranges will use the Map_UseMaxRange definition which is Core.GlobalMaxUpdateRange (which will be changed from 22 to 18 since update range never goes over 18).
-When looping through NetStates for packet purposes, a range check will check the netstate max range to make sure its not sending packets to those with smaller screen sizes.
-OR-
Send packets to all in range of the 18 tiles, regardless of screen size.
Screen sizes send the following update ranges:
Code:
/* 640x480 - 12
* 800x600 - 12
* 1024x768 - 18
* 1152x864 - 18
* 1280x720 - 18
*/
Here is what I propose:
-NetState property gets set to a max update range when screen size is changed.
-Any update ranges will use the Map_UseMaxRange definition which is Core.GlobalMaxUpdateRange (which will be changed from 22 to 18 since update range never goes over 18).
-When looping through NetStates for packet purposes, a range check will check the netstate max range to make sure its not sending packets to those with smaller screen sizes.
-OR-
Send packets to all in range of the 18 tiles, regardless of screen size.