Changeset - r22846:1117d19238f0
[Not reviewed]
master
0 3 0
Matthijs Kooijman - 6 years ago 2018-04-30 10:54:00
matthijs@stdin.nl
Fix: Some spelling errors in printed messages
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/core/backup_type.hpp
Show inline comments
 
@@ -50,13 +50,13 @@ struct Backup {
 
	{
 
		/* Check whether restoration was done */
 
		if (this->valid)
 
		{
 
			/* We cannot assert here, as missing restoration is 'normal' when exceptions are thrown.
 
			 * Exceptions are especially used to abort world generation. */
 
			DEBUG(misc, 0, "%s:%d: Backupped value was not restored!", this->file, this->line);
 
			DEBUG(misc, 0, "%s:%d: Backed-up value was not restored!", this->file, this->line);
 
			this->Restore();
 
		}
 
	}
 

	
 
	/**
 
	 * Checks whether the variable was already restored.
src/network/network_server.cpp
Show inline comments
 
@@ -1112,13 +1112,13 @@ NetworkRecvStatus ServerNetworkGameSocke
 
	if ((GetCommandFlags(cp.cmd) & CMD_SERVER) && ci->client_id != CLIENT_ID_SERVER) {
 
		IConsolePrintF(CC_ERROR, "WARNING: server only command from: client %d (IP: %s), kicking...", ci->client_id, this->GetClientIP());
 
		return this->SendError(NETWORK_ERROR_KICKED);
 
	}
 

	
 
	if ((GetCommandFlags(cp.cmd) & CMD_SPECTATOR) == 0 && !Company::IsValidID(cp.company) && ci->client_id != CLIENT_ID_SERVER) {
 
		IConsolePrintF(CC_ERROR, "WARNING: spectator issueing command from client %d (IP: %s), kicking...", ci->client_id, this->GetClientIP());
 
		IConsolePrintF(CC_ERROR, "WARNING: spectator issuing command from client %d (IP: %s), kicking...", ci->client_id, this->GetClientIP());
 
		return this->SendError(NETWORK_ERROR_KICKED);
 
	}
 

	
 
	/**
 
	 * Only CMD_COMPANY_CTRL is always allowed, for the rest, playas needs
 
	 * to match the company in the packet. If it doesn't, the client has done
src/video/sdl_v.cpp
Show inline comments
 
@@ -320,13 +320,13 @@ bool VideoDriver_SDL::CreateMainSurface(
 
		want_hwpalette = bpp == 8 && _fullscreen && _support8bpp == S8BPP_HARDWARE;
 
	} else {
 
		/* User specified a value manually */
 
		want_hwpalette = _use_hwpalette;
 
	}
 

	
 
	if (want_hwpalette) DEBUG(driver, 1, "SDL: requesting hardware palete");
 
	if (want_hwpalette) DEBUG(driver, 1, "SDL: requesting hardware palette");
 

	
 
	/* Free any previously allocated shadow surface */
 
	if (_sdl_screen != NULL && _sdl_screen != _sdl_realscreen) SDL_CALL SDL_FreeSurface(_sdl_screen);
 

	
 
	if (_sdl_realscreen != NULL) {
 
		if (_requested_hwpalette != want_hwpalette) {
0 comments (0 inline, 0 general)