MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / AnimationNumberToModelNumber

Function AnimationNumberToModelNumber

PanzerChasm/server/map.cpp:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20static const float g_commands_coords_scale= 1.0f / 256.0f;
21
22static unsigned int AnimationNumberToModelNumber( const unsigned int animation_number )
23{
24 // Animations for models starts with 33. But, sometimes, animation number bigger, then total amount of models on map.
25 // Sometimes, animation_number is 1. TODO - know, what means 1.
26 if( animation_number < 33u )
27 return ~0u;
28 return animation_number - 33u;
29}
30
31template<class Wall>
32static m_Vec3 GetNormalForWall( const Wall& wall )

Callers 2

MapMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected