| 789 | void mapenlarge() { if(empty_world(-1, false)) addmsg(SV_NEWMAP, "ri", -1); } |
| 790 | void mapshrink() { if(empty_world(-2, false)) addmsg(SV_NEWMAP, "ri", -2); } |
| 791 | void newmap(int *i) |
| 792 | { |
| 793 | if(m_botmode) { conoutf("newmap not supported in bot mode"); return; } |
| 794 | if(empty_world(*i, false)) |
| 795 | { |
| 796 | addmsg(SV_NEWMAP, "ri", max(*i, 0)); |
| 797 | exechook(HOOK_SP_MP, "onNewMap", ""); |
| 798 | } |
| 799 | defformatstring(startmillis)("%d", totalmillis); |
| 800 | alias("gametimestart", startmillis, true); |
| 801 | } |
| 802 | |
| 803 | COMMAND(mapenlarge, ""); |
| 804 | COMMAND(mapshrink, ""); |