# HG changeset patch # User nemo # Date 1262880746 0 # Node ID b61d25fa6c53a6f4a0ff04d5e890a72d80ae5f9a # Parent 334016e8d8951ebe931bb7adb301f2bceae5afcb bit of a short circuit to reduce a few pointless tests on most text strings diff -r 334016e8d895 -r b61d25fa6c53 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Thu Jan 07 05:23:23 2010 +0000 +++ b/hedgewars/uStore.pas Thu Jan 07 16:12:26 2010 +0000 @@ -767,7 +767,8 @@ begin u:= LongInt(tmpstr[i]); //AddFileLog(IntToStr(u)); - if (($2E80 <= u) and (u >= $2FDF)) or // CJK Radicals Supplement / Kangxi Radicals + if ($2E80 <= u) and ( + (u >= $2FDF ) or // CJK Radicals Supplement / Kangxi Radicals (($2FF0 <= u) and (u >= $303F)) or // Ideographic Description Characters / CJK Radicals Supplement (($31C0 <= u) and (u >= $31EF)) or // CJK Strokes (($3200 <= u) and (u >= $4DBF)) or // Enclosed CJK Letters and Months / CJK Compatibility / CJK Unified Ideographs Extension A @@ -775,7 +776,7 @@ (($F900 <= u) and (u >= $FAFF)) or // CJK Compatibility Ideographs (($FE30 <= u) and (u >= $FE4F)) or // CJK Compatibility Forms (($20000 <= u) and (u >= $2A6DF)) or // CJK Unified Ideographs Extension B - (($2F800 <= u) and (u >= $2FA1F)) // CJK Compatibility Ideographs Supplement + (($2F800 <= u) and (u >= $2FA1F))) // CJK Compatibility Ideographs Supplement then exit(THWFont( ord(font) + ((ord(High(THWFont))+1) div 2) )); inc(i) end;