When using seduction, only show “CENSORED” text in English locale
authorWuzzy <Wuzzy2@mail.ru>
Fri, 09 Mar 2018 22:23:57 +0100
changeset 13150 2f7c25bf4201
parent 13149 22d8725be313
child 13151 deab88f1f6f7
When using seduction, only show “CENSORED” text in English locale
ChangeLog.txt
hedgewars/uGearsRender.pas
--- a/ChangeLog.txt	Fri Mar 09 21:09:53 2018 +0100
+++ b/ChangeLog.txt	Fri Mar 09 22:23:57 2018 +0100
@@ -16,6 +16,7 @@
  * Fix many effects not being correctly recorded by the video recorder
  * Fix quit menu showing incorrect keys if using non-default key bindings
  * Fix script translations not being loaded for Portuguese and Chinese
+ * When using seduction, only show “CENSORED” text in English locale
 
 Frontend:
  + Schemes are now stored in separate files under Schemes
--- a/hedgewars/uGearsRender.pas	Fri Mar 09 21:09:53 2018 +0100
+++ b/hedgewars/uGearsRender.pas	Fri Mar 09 22:23:57 2018 +0100
@@ -608,7 +608,10 @@
                                 CurAmmoGear^.Pos,
                                 sign,
                                 0);
-                        DrawSprite(sprCensored, ox - 32, oy - 20, 0)
+                        // sprCensored contains English text, so only show it for English locales
+                        // TODO: Make text translatable. But how?
+                        if Copy(cLocale, 1, 2) = 'en' then
+                            DrawSprite(sprCensored, ox - 32, oy - 20, 0);
                         end;
                     defaultPos:= false
                     end;