Page 1 of 1

warning message when recompiling connect-server

Posted: Mon Mar 18, 2013 10:15 am
by joshr45
1>------ Build started: Project: DSConnect-server, Configuration: Debug Win32 ------
1> utils.cpp
1>c:\dsp\src\common\utils.cpp(133): warning C4244: 'return' : conversion from 'float' to 'uint8', possible loss of data
1> Generating Code...
1> Compiling...
1> login.cpp
1> lobby.cpp
1> timer.cpp
1> taskmgr.cpp
1> Generating Code...
1> DSConnect-server.vcxproj -> C:\dsp\win32\DSConnect-server\..\..\DSConnect-server.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

but it did work so i don't know

same warning with search server

Re: warning message when recompiling connect-server

Posted: Mon Mar 18, 2013 7:08 pm
by anglos
I think you'll find that this is quite common and nothing to worry about. A uint8 is an 8 bit type with no decimal places (0-255) while a float is a much larger type that also has decimal places so anything greater than 255, less than 0, or within decimal place range would be lost.

Re: warning message when recompiling connect-server

Posted: Mon Mar 18, 2013 7:28 pm
by PrBlahBlahtson
This one's fairly harmless. If I remember right, it has to do with the character's pos_rot field, so you might log in facing a slightly different direction than expected.

It's the sort of thing we should eventually fix, but right now there are bigger fish (crashes) to pay attention to.