| 637 | } |
| 638 | |
| 639 | void nextplayerstart(int *type) |
| 640 | { |
| 641 | static int cycle = -1; |
| 642 | |
| 643 | if(noteditmode("nextplayerstart")) return; |
| 644 | cycle = findentity(PLAYERSTART, cycle + 1, *type); |
| 645 | if(cycle >= 0) |
| 646 | { |
| 647 | gotoplayerstart(player1, &ents[cycle]); |
| 648 | entinmap(player1); |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | COMMAND(nextplayerstart, "i"); |
| 653 |
nothing calls this directly
no test coverage detected