hedgewars/uIO.pas
changeset 2017 7845c77c8d31
parent 1888 e76274ce7365
child 2043 1f2b91b5e7ef
equal deleted inserted replaced
2016:73b0bcc4396d 2017:7845c77c8d31
   291 			CursorPoint.Y:= SmallInt(SDLNet_Read16(@(headcmd^.Y)) + WorldDy);
   291 			CursorPoint.Y:= SmallInt(SDLNet_Read16(@(headcmd^.Y)) + WorldDy);
   292 			end;
   292 			end;
   293 		'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   293 		'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   294 		't': ParseCommand('taunt ' + headcmd^.str[2], true);
   294 		't': ParseCommand('taunt ' + headcmd^.str[2], true);
   295 		'g': ParseCommand('newgrave', true);
   295 		'g': ParseCommand('newgrave', true);
       
   296 		'h': ParseCommand('hogsay ' + copy(headcmd^.str, 2, Pred(headcmd^.len)), true);
   296 		'1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   297 		'1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   297 		#128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   298 		#128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   298 		else
   299 		else
   299 			OutError('Unexpected protocol command: ' + headcmd^.cmd, True)
   300 			OutError('Unexpected protocol command: ' + headcmd^.cmd, True)
   300 		end;
   301 		end;