… | |
… | |
798 | * commands. |
798 | * commands. |
799 | */ |
799 | */ |
800 | pl->count = 0; |
800 | pl->count = 0; |
801 | |
801 | |
802 | //TODO: schmorp thinks whatever this calculates, it makes no sense at all |
802 | //TODO: schmorp thinks whatever this calculates, it makes no sense at all |
803 | int time = FABS (pl->ob->speed) < 0.001 |
803 | int time = fabs (pl->ob->speed) < 0.001 |
804 | ? time = MAX_TIME * 100 |
804 | ? time = MAX_TIME * 100 |
805 | : time = (int) (MAX_TIME / FABS (pl->ob->speed)); |
805 | : time = (int) (MAX_TIME / fabs (pl->ob->speed)); |
806 | |
806 | |
807 | /* Send confirmation of command execution now */ |
807 | /* Send confirmation of command execution now */ |
808 | packet sl ("comc"); |
808 | packet sl ("comc"); |
809 | sl << uint16 (cmdid) << uint32 (time); |
809 | sl << uint16 (cmdid) << uint32 (time); |
810 | pl->ns->send_packet (sl); |
810 | pl->ns->send_packet (sl); |