hedgewars/uIO.pas
changeset 1821 6b6cf3389f92
parent 1639 89b536a3cf3c
child 1888 e76274ce7365
equal deleted inserted replaced
1820:ae428043da32 1821:6b6cf3389f92
   258 			CursorPoint.X:= SmallInt(SDLNet_Read16(@(headcmd^.X)) + WorldDx);
   258 			CursorPoint.X:= SmallInt(SDLNet_Read16(@(headcmd^.X)) + WorldDx);
   259 			CursorPoint.Y:= SmallInt(SDLNet_Read16(@(headcmd^.Y)) + WorldDy);
   259 			CursorPoint.Y:= SmallInt(SDLNet_Read16(@(headcmd^.Y)) + WorldDy);
   260 			end;
   260 			end;
   261 		'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   261 		'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   262 		't': ParseCommand('taunt ' + headcmd^.str[2], true);
   262 		't': ParseCommand('taunt ' + headcmd^.str[2], true);
       
   263 		'g': ParseCommand('newgrave', true);
   263 		'1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   264 		'1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   264 		#128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   265 		#128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   265 		else
   266 		else
   266 			OutError('Unexpected protocol command: ' + headcmd^.cmd, True)
   267 			OutError('Unexpected protocol command: ' + headcmd^.cmd, True)
   267 		end;
   268 		end;