mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Network: Send IEEE floats (#7768)
This commit is contained in:
parent
8471d027b9
commit
839e935ba0
9 changed files with 317 additions and 12 deletions
|
@ -49,19 +49,19 @@ std::string gob_cmd_update_position(
|
|||
// command
|
||||
writeU8(os, GENERIC_CMD_UPDATE_POSITION);
|
||||
// pos
|
||||
writeV3F1000(os, position);
|
||||
writeV3F32(os, position);
|
||||
// velocity
|
||||
writeV3F1000(os, velocity);
|
||||
writeV3F32(os, velocity);
|
||||
// acceleration
|
||||
writeV3F1000(os, acceleration);
|
||||
writeV3F32(os, acceleration);
|
||||
// rotation
|
||||
writeV3F1000(os, rotation);
|
||||
writeV3F32(os, rotation);
|
||||
// do_interpolate
|
||||
writeU8(os, do_interpolate);
|
||||
// is_end_position (for interpolation)
|
||||
writeU8(os, is_movement_end);
|
||||
// update_interval (for interpolation)
|
||||
writeF1000(os, update_interval);
|
||||
writeF32(os, update_interval);
|
||||
return os.str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue