@@ -1325,7 +1325,6 @@ struct FpsControl {
1325
1325
* many functions that do require objects of thse types do not modify them
1326
1326
* (so they can be passed as a const qualified parameter)
1327
1327
*/
1328
-
1329
1328
struct CameraOrientation {
1330
1329
f32 camera_yaw; // "right/left"
1331
1330
f32 camera_pitch; // "up/down"
@@ -1898,7 +1897,7 @@ bool Game::initSound()
1898
1897
bool Game::createSingleplayerServer (const std::string map_dir,
1899
1898
const SubgameSpec &gamespec, u16 port, std::string *address)
1900
1899
{
1901
- showOverlayMessage (" Creating server..." , 0 , 25 );
1900
+ showOverlayMessage (" Creating server..." , 0 , 5 );
1902
1901
1903
1902
std::string bind_str = g_settings->get (" bind_address" );
1904
1903
Address bind_addr (0 , 0 , 0 , 0 , port);
@@ -1936,7 +1935,7 @@ bool Game::createClient(const std::string &playername,
1936
1935
const std::string &password, std::string *address, u16 port,
1937
1936
std::wstring *error_message)
1938
1937
{
1939
- showOverlayMessage (" Creating client..." , 0 , 50 );
1938
+ showOverlayMessage (" Creating client..." , 0 , 10 );
1940
1939
1941
1940
draw_control = new MapDrawControl;
1942
1941
if (!draw_control)
@@ -2105,7 +2104,7 @@ bool Game::connectToServer(const std::string &playername,
2105
2104
const std::string &password, std::string *address, u16 port,
2106
2105
bool *connect_ok, bool *aborted)
2107
2106
{
2108
- showOverlayMessage (" Resolving address..." , 0 , 75 );
2107
+ showOverlayMessage (" Resolving address..." , 0 , 15 );
2109
2108
2110
2109
Address connect_address (0 , 0 , 0 , 0 , port);
2111
2110
@@ -2196,7 +2195,7 @@ bool Game::connectToServer(const std::string &playername,
2196
2195
}
2197
2196
2198
2197
// Update status
2199
- showOverlayMessage (" Connecting to server..." , dtime, 100 );
2198
+ showOverlayMessage (" Connecting to server..." , dtime, 20 );
2200
2199
}
2201
2200
} catch (con::PeerNotFoundException &e) {
2202
2201
// TODO: Should something be done here? At least an info/error
@@ -2251,16 +2250,16 @@ bool Game::getServerContent(bool *aborted)
2251
2250
}
2252
2251
2253
2252
// Display status
2254
- int progress = 0 ;
2253
+ int progress = 25 ;
2255
2254
2256
2255
if (!client->itemdefReceived ()) {
2257
2256
wchar_t *text = wgettext (" Item definitions..." );
2258
- progress = 0 ;
2257
+ progress = 25 ;
2259
2258
draw_load_screen (text, device, guienv, dtime, progress);
2260
2259
delete[] text;
2261
2260
} else if (!client->nodedefReceived ()) {
2262
2261
wchar_t *text = wgettext (" Node definitions..." );
2263
- progress = 25 ;
2262
+ progress = 30 ;
2264
2263
draw_load_screen (text, device, guienv, dtime, progress);
2265
2264
delete[] text;
2266
2265
} else {
@@ -2281,7 +2280,7 @@ bool Game::getServerContent(bool *aborted)
2281
2280
message << " ( " << cur << cur_unit << " )" ;
2282
2281
}
2283
2282
2284
- progress = 50 + client->mediaReceiveProgress () * 50 + 0.5 ;
2283
+ progress = 30 + client->mediaReceiveProgress () * 35 + 0.5 ;
2285
2284
draw_load_screen (narrow_to_wide (message.str ().c_str ()), device,
2286
2285
guienv, dtime, progress);
2287
2286
}
0 commit comments