Skip to content

Commit

Permalink
Fix pos calc
Browse files Browse the repository at this point in the history
  • Loading branch information
CovERUshKA committed Jan 31, 2025
1 parent 1c21000 commit a07bbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/server/NN/NeuralNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void CNeuralNetwork::PreTick()
// const int Index = (int)(bot_pos.y / 32 + 1) * gamelayer->m_Width + (int)(bot_pos.x / 32);
// const int GameIndex = pTiles[Index].m_Index;

input_inputs->pos = {bot_pos.x - (int)bot_pos.x, bot_pos.y - (int)bot_pos.y};
input_inputs->pos = {(bot_pos.x / 32.f) - (int)(bot_pos.x / 32.f), (bot_pos.y / 32.f) - (int)(bot_pos.y / 32.f)};
input_inputs->m_vel = bot_character_core->m_Vel / 20.f;
input_inputs->is_grounded = bot_character->IsGrounded();

Expand Down

0 comments on commit a07bbc0

Please sign in to comment.