1. 19 Apr, 2019 1 commit
    • fluzz's avatar
      Prevent a crash, possibly, due to FP arithmetic accuracy problems when · dade2a74
      fluzz authored
      resolving the virtual position of the player.
      
      When Tux crosses a level's boundary, its position on the reached level
      is computed by resolve_virtual_position().
      
      The new position is then checked and if found invalid, in
      correct_tux_position_according_to_jump(), the game stops.
      
      Due to FP arithmetic accuracy problems, an invalid position can be
      computed in resolve_virtual_position().
      
      This patch tries to avoid such an issue by applying a small correction,
      if needed, to the resolved virtual positions.
      
      Meant to close issue917
      dade2a74
  2. 18 Apr, 2019 1 commit
  3. 15 Apr, 2019 4 commits
    • fluzz's avatar
      Fix an error in the former commit (1403f40e). · bb45b870
      fluzz authored
      system.h must be included before to use a config directive.
      bb45b870
    • Gregory's avatar
      Add guards to compile without opengl · 1403f40e
      Gregory authored
      When trying to compile wihout OpenGL, with ./configure --disable-opengl,
      we got errors. This path add guards to remove these errors.
      1403f40e
    • Gregory's avatar
      Missing return statements in if else · 743d26c7
      Gregory authored
      Two "else if" were missing their return statement meaning that the event
      matched a keybinding.
      
      Not really useful because input_key_event() which receives this returned
      value doesn't use it, but returns it to input_key_press() which also
      doesn't use it.
      743d26c7
    • Józef Kucia's avatar
      Missing empty get_background_music() for builds without sounds. · 1d8c2f7a
      Józef Kucia authored
      Add missing empty get_background_music() function used when build without sound supoort.
      
      Without it build fails on final linking when sounds are not enabled:
      /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
        title.o: in function title_screen_run':
          /home/.../source/freedroid-src/src/title.c:255: undefined reference toget_background_music'
      collect2: error: ld returned 1 exit status
      1d8c2f7a
  4. 30 Mar, 2019 3 commits
    • fluzz's avatar
      This is FreedroidRPG 1.0rc1 · c38b7ff8
      fluzz authored
      - update configure.ac
      - update Changelog
      - update Credits.lua
      - update NEWS
      - update PO templates and catalogs
      - update GMO
      c38b7ff8
    • Gregory's avatar
      List dead bots and living bots more naturally in the cheat menu · 544c6e21
      Gregory authored
      In the cheat menu, you have to type 'l' to display all bots.
      
      To display dead bots, you have to type 'k' when 'l'. But then, you can no
      more list all bots or only living bots, because 'l' will now always lists
      dead bots.
      
      Likewise, once 'L' is typed for displaying living bots, you can no more
      list them all (but still can display only dead ones by typing 'k', then 'l')
      
      This path allows to display all bots by typing 'l', to display dead bots by
      typing 'k' and to display living bots by typing 'L'.
      544c6e21
    • fluzz's avatar
      po/l10n-others/Makevars.in needed to be compatible with the · 1223ea21
      fluzz authored
      gettext infrastructure.
      1223ea21
  5. 29 Mar, 2019 3 commits
  6. 28 Mar, 2019 1 commit
    • fluzz's avatar
      Fix execution of 'make distcheck' · c2fb9b20
      fluzz authored
      Several things were not correctly configured for 'make distchek' to
      succeed:
      - rtprof is to be build
      - a build is executed in a read-only VPATH, and therefore the
        translations cannot be locally copied
      - some files were not removed on distclean
      c2fb9b20
  7. 27 Mar, 2019 2 commits
  8. 26 Mar, 2019 2 commits
  9. 24 Mar, 2019 1 commit
    • Rafael Fontenelle's avatar
      Massive mispellings fix. · 9d6fbe17
      Rafael Fontenelle authored
      The attached patch consists in 2 fixes:
      1. for misspellings spotted via 'codespell' tool (that's most of the total fixes);
      2. for few errors according to the context, I found when translating e.g. were->where and fell->feel.
      9d6fbe17
  10. 12 Mar, 2019 1 commit
  11. 09 Mar, 2019 2 commits
  12. 05 Mar, 2019 2 commits
    • fluzz's avatar
      Lighten parafont and darken credits title backgound. · c21917f6
      fluzz authored
      Meant to augment the constrast between the text and the background image
      to improve text readibility.
      c21917f6
    • Jesusaves's avatar
      Include Energy Shield skill, but only as an alternative to Invisibility. · b6314c44
      Jesusaves authored
      You're forced to rely on Energy Shield for "not taking damage", and this skill
      becomes outdated when Invisibility starts being sold (before HF fight at library,
      or at some special quests)
      
      Because Invisibility actually makes you Invulnerable (except against boss), and
      even allows you to attack while on this state, this skill does not follow the
      original purpose.
      
      In future, what we currently know as Invisibility will become an Invulnerability
      skill, and the Invisibility skill will not allow you to attack while it is active.
      
      Relates to RR1984
      Closes #511
      b6314c44
  13. 04 Mar, 2019 1 commit
    • fluzz's avatar
      When saving an item, write the itemspec's id rather than the item index · 30db0002
      fluzz authored
      in ItemMap.
      
      If an item is added in the middle of the item_specs file, the index is
      indeed no more the right one.
      In the best case, a wrong item will be loaded.
      In the worst case, an item of a wrong type (source book instead of weapon,
      for instance) is loaded, and the game can crash when using it.
      
      Add a savegame converter, which apply the conversion on old savegames.
      -> new savegame revision is 001601-08
      30db0002
  14. 28 Feb, 2019 5 commits
  15. 27 Feb, 2019 1 commit
  16. 26 Feb, 2019 1 commit
  17. 25 Feb, 2019 6 commits
  18. 24 Feb, 2019 3 commits
    • fluzz's avatar
      Localization: Handle game acts · 089a8ac8
      fluzz authored
      Get i18n source files from all storyline
      089a8ac8
    • fluzz's avatar
      i18n: Add some 'xgettext:no-c-format' comment where needed. · 2bd9b398
      fluzz authored
      By default, xgettext uses some heuristics to find if an i18n string
      is a C format string. It then adds a 'c-format' comment before the msgid
      string in the .po file.
      
      When msgfmt later compiles the l10n catalog (.mo file), it checks if the
      translated string is still a valid format string.
      
      But sometimes, the heuristics are wrong.
      For instance: "This is 100% natural" is detected as a C format (due to
      '% n'). In some language, once 'natural' is translated, it results in
      an invalid C format string...
      
      To avoid this, a 'xgettext:no-c-format' comment MUST be added before
      the i18n string.
      2bd9b398
    • fluzz's avatar
      Fonts; add glyphs for the 'left and right pointing double angle quotation marks'. · 9e6ebd01
      fluzz authored
      Of the 3 ISO-8859 encodings that we currently used, those characters are only
      available in ISO-8859-15 (western europe).
      For the 2 others, they are automatically transliterated i(by libiconv) into
      '<<' and '>>' when a message catalog is loaded.
      9e6ebd01