| 678 | |
| 679 | string demosubpath; |
| 680 | void getdemo(int *idx, char *dsp) |
| 681 | { |
| 682 | if(!multiplayer(NULL)) |
| 683 | { |
| 684 | conoutf("\f3Getting demo from server is not available in singleplayer"); |
| 685 | return; |
| 686 | } |
| 687 | if(dsp && dsp[0]) formatstring(demosubpath)("%s/", dsp); |
| 688 | else copystring(demosubpath, ""); |
| 689 | if(*idx<=0) conoutf("getting demo..."); |
| 690 | else conoutf("getting demo %d...", *idx); |
| 691 | addmsg(SV_GETDEMO, "ri", *idx); |
| 692 | } |
| 693 | COMMAND(getdemo, "is"); |
| 694 | |
| 695 | void listdemos() |
nothing calls this directly
no test coverage detected