# HG changeset patch # User unc0rr # Date 1333623058 -14400 # Node ID b34288c8fafa0e81f3afe8911d60846210b726ba # Parent a5b0afb608620941d8727757d551b17934ad9194 Make function more pascal-ish diff -r a5b0afb60862 -r b34288c8fafa hedgewars/uMisc.pas --- a/hedgewars/uMisc.pas Thu Apr 05 00:42:43 2012 +0400 +++ b/hedgewars/uMisc.pas Thu Apr 05 14:50:58 2012 +0400 @@ -153,13 +153,11 @@ {$ELSE} function SDL_RectMake(x, y: SmallInt; width, height: Word): TSDL_Rect; {$ENDIF} -var rect: TSDL_Rect; begin - rect.x:= x; - rect.y:= y; - rect.w:= width; - rect.h:= height; - exit(rect); + SDL_RectMake.x:= x; + SDL_RectMake.y:= y; + SDL_RectMake.w:= width; + SDL_RectMake.h:= height; end; function GetTeamStatString(p: PTeam): shortstring;