… | |
… | |
577 | */ |
577 | */ |
578 | pl->count = 0; |
578 | pl->count = 0; |
579 | |
579 | |
580 | //TODO: schmorp thinks whatever this calculates, it makes no sense at all |
580 | //TODO: schmorp thinks whatever this calculates, it makes no sense at all |
581 | int time = pl->ob->has_active_speed () |
581 | int time = pl->ob->has_active_speed () |
582 | ? (int) (MAX_TIME / fabs (pl->ob->speed)) |
582 | ? (int) (MAX_TIME / pl->ob->speed) |
583 | : MAX_TIME * 100; |
583 | : MAX_TIME * 100; |
584 | |
584 | |
585 | /* Send confirmation of command execution now */ |
585 | /* Send confirmation of command execution now */ |
586 | packet sl ("comc"); |
586 | packet sl ("comc"); |
587 | sl << uint16 (cmdid) << uint32 (time); |
587 | sl << uint16 (cmdid) << uint32 (time); |