mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
improved some the dummies a bit
This commit is contained in:
parent
3c463bf05d
commit
06d48cd3da
|
@ -60,6 +60,16 @@ void mods_client_predicted_input(int client_id, void *input)
|
|||
void mods_tick()
|
||||
{
|
||||
game.tick();
|
||||
|
||||
if(config.dbg_dummies)
|
||||
{
|
||||
for(int i = 0; i < config.dbg_dummies ; i++)
|
||||
{
|
||||
NETOBJ_PLAYER_INPUT input = {0};
|
||||
input.direction = (i&1)?-1:1;
|
||||
game.players[MAX_CLIENTS-i-1]->on_predicted_input(&input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void mods_snap(int client_id)
|
||||
|
|
Loading…
Reference in a new issue