diff --git a/config/opt/survival.cfg b/config/opt/survival.cfg index e0d09235..090a45bc 100644 --- a/config/opt/survival.cfg +++ b/config/opt/survival.cfg @@ -178,7 +178,7 @@ const teleportPlayer [ survTeleported = 1 findCenter if (! $editing) edittoggle - go_to $midZoneX $midZoneY 0 + gotoposition $midZoneX $midZoneY sleep 25 edittoggle ] ] diff --git a/source/src/client.cpp b/source/src/client.cpp index 5113af52..44cf3ca8 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -157,15 +157,6 @@ void whereami() conoutf("you are at (%.2f,%.2f)", player1->o.x, player1->o.y); } -void go_to(float *x, float *y, char *showmsg) -{ - if(player1->state != CS_EDITING) return; - player1->newpos.x = *x; - player1->newpos.y = *y; - if(!showmsg || !*showmsg || strcmp(showmsg, "0")!=0) - conoutf("you are going to (%.2f; %.2f)", *x, *y); -} - void disconnect(int onlyclean, int async) { bool cleanup = onlyclean!=0; @@ -337,7 +328,6 @@ COMMAND(modconnectadmin, "sis"); COMMAND(modlanconnect, ""); COMMANDN(disconnect, trydisconnect, ""); COMMAND(whereami, ""); -COMMAND(go_to, "ffs"); void current_version(char *text) {