Skip to content

Commit

Permalink
Better random input
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed Feb 14, 2024
1 parent 56cd784 commit e1fd0e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/client/inputhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ struct RandomInputHandlerSimData {
void RandomInputHandler::step(float dtime)
{
static RandomInputHandlerSimData rnd_data[] = {
{ "keymap_sneak", 0.0f, 45 },
{ "keymap_right", 0.0f, 10 },

{ "keymap_jump", 0.0f, 40 },
{ "keymap_aux1", 0.0f, 40 },
{ "keymap_forward", 0.0f, 40 },
Expand Down
2 changes: 1 addition & 1 deletion src/fm_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class AbmWorldThread : public thread_vector
const auto printstat = [&]() {
auto time = porting::getTimeMs();

infostream << "Abm world " << cur_n << "/" << loadable_blocks_size
infostream << "Abm world run " << run << " " << cur_n << "/" << loadable_blocks_size
<< " blocks loaded " << m_server->getMap().m_blocks.size()
<< " processed " << processed << " triggers " << triggers_total
<< " per " << (time - time_start) / 1000 << " speed "
Expand Down

0 comments on commit e1fd0e6

Please sign in to comment.