Fixed shaky-camera, when bot gets killed.

Make use short bot  name here and there.
Minor tweaks.
This commit is contained in:
Dmitry 2019-05-11 15:28:13 +03:00 committed by jeefo
commit 47fefabe66
6 changed files with 14 additions and 6 deletions

View file

@ -2809,7 +2809,7 @@ WaypointDownloadError Waypoint::downloadWaypoint (void) {
}
String request;
request.format ("GET /wpdb/%s.pwf HTTP/1.0\r\nAccept: */*\r\nUser-Agent: YaPB/%s\r\nHost: %s\r\n\r\n", engine.getMapName (), PRODUCT_VERSION, yb_waypoint_autodl_host.str ());
request.format ("GET /wpdb/%s.pwf HTTP/1.0\r\nAccept: */*\r\nUser-Agent: %s/%s\r\nHost: %s\r\n\r\n", engine.getMapName (), PRODUCT_SHORT_NAME, PRODUCT_VERSION, yb_waypoint_autodl_host.str ());
if (send (socketHandle, request.chars (), static_cast <int> (request.length () + 1), 0) < 1) {
closeSocket (socketHandle);