LiamKarlMitchell / InfiniteSky

InfiniteSky is an open-source mmorpg project, It is written in Node.JS
GNU General Public License v3.0
33 stars 42 forks source link

On character location save #155

Closed przemyslawwalczak closed 9 years ago

przemyslawwalczak commented 9 years ago

We cannot round or floor the values, we want to keep the precision, because after character logs back in, is mostly above the ground or under - slightly.

LiamKarlMitchell commented 9 years ago

Sure, But the structure the server gives to the client is using an integer at login/character structure

LiamKarlMitchell commented 9 years ago

I think we can possibly find a way to save the location and location to into the database. When the next socket connects we should confirm and set the location as the new location. We send through int for inital character data struct but the action would get the float value.