hedgewars/uIO.pas
changeset 3969 5f4ef3db0a65
parent 3962 e9ee2bd51e08
child 3971 5c82ee165ed5
equal deleted inserted replaced
3968:b73bf885e127 3969:5f4ef3db0a65
   328                CursorPoint.Y:= cScreenHeight - SmallInt(SDLNet_Read16(@(headcmd^.Y))) - WorldDy
   328                CursorPoint.Y:= cScreenHeight - SmallInt(SDLNet_Read16(@(headcmd^.Y))) - WorldDy
   329                end
   329                end
   330             end;
   330             end;
   331         'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   331         'w': ParseCommand('setweap ' + headcmd^.str[2], true);
   332         't': ParseCommand('taunt ' + headcmd^.str[2], true);
   332         't': ParseCommand('taunt ' + headcmd^.str[2], true);
   333         'g': ParseCommand('newgrave', true);
       
   334         'h': ParseCommand('hogsay ' + copy(headcmd^.str, 2, Pred(headcmd^.len)), true);
   333         'h': ParseCommand('hogsay ' + copy(headcmd^.str, 2, Pred(headcmd^.len)), true);
   335         '1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   334         '1'..'5': ParseCommand('timer ' + headcmd^.cmd, true);
   336         #128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   335         #128..char(128 + cMaxSlotIndex): ParseCommand('slot ' + char(byte(headcmd^.cmd) - 79), true)
   337         else
   336         else
   338             OutError('Unexpected protocol command: ' + headcmd^.cmd, True)
   337             OutError('Unexpected protocol command: ' + headcmd^.cmd, True)