X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_basic.pas;h=e5ef3d9c28acdff92c10e22ddf19ef8beb635e92;hb=103fc3e7b8ce086896ec2399a823fc18a0d08c68;hp=bdeb090420fa88c415b9144f3703a286ccdbe6e0;hpb=563e770b462d67b2c8265b0e2b53384152afb7c1;p=d2df-sdl.git diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas index bdeb090..e5ef3d9 100644 --- a/src/game/g_basic.pas +++ b/src/game/g_basic.pas @@ -23,6 +23,8 @@ uses const GAME_VERSION = '0.667'; + GAME_BUILDDATE = {$I %DATE%}; + GAME_BUILDTIME = {$I %TIME%}; UID_GAME = 1; UID_PLAYER = 2; UID_MONSTER = 3; @@ -87,7 +89,7 @@ function g_SetFileTime(fileName: String; time: Integer): Boolean; procedure SortSArray(var S: SSArray); function b_Text_Format(S: string): string; function b_Text_Unformat(S: string): string; - +function b_Text_Wrap(S: string; LineLen: Integer): string; var gmon_dbg_los_enabled: Boolean = true; @@ -1173,4 +1175,9 @@ begin end; end; +function b_Text_Wrap(S: string; LineLen: Integer): string; +begin + Result := WrapText(S, ''#10, [#10, ' ', '-'], LineLen); +end; + end.