4.0.5 device skill effect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Derakon
    Prophet
    • Dec 2009
    • 9022

    #16
    Originally posted by Nick
    You are, of course, correct in principle, although at this point in its development starting to use floating point in Angband would be a great source of bugs. There's also the consideration that we don't know for sure exactly what architecture the game will "need" to run on in the future. So it will be staying integer only for now.
    Yeah, my screed was more meant to apply to anyone considering starting a new project. Legacy code will always have weird quirks that made sense at the time and that aren't worth the hassle of trying to bring "up to date".

    Comment

    • AnonymousHero
      Veteran
      • Jun 2007
      • 1393

      #17
      Originally posted by Nick
      There's also the consideration that we don't know for sure exactly what architecture the game will "need" to run on in the future. So it will be staying integer only for now.
      Heh. I don't think it's particularly likely that there'll be many new platforms without (at least emulated) floating point . Doesn't C89 actually mandate floating point support?

      Comment

      • Rydel
        Apprentice
        • Jul 2008
        • 89

        #18
        I think it's less an issue of new platforms, and more of someone deciding that's it's vital that Angband be ported to their Commodore VIC-20... assuming that port doesn't already exist.
        I'm trying to think of an analogy, and the best I can come up with is Angband is like fishing for sharks, and Sil is like hunting a bear with a pocket knife and a pair of chopsticks. It's not great. -Nick

        Comment

        • PowerDiver
          Prophet
          • Mar 2008
          • 2820

          #19
          Originally posted by Rydel
          I think it's less an issue of new platforms, and more of someone deciding that's it's vital that Angband be ported to their Commodore VIC-20... assuming that port doesn't already exist.
          That's what compilers are for.

          Comment

          • Pete Mack
            Prophet
            • Apr 2007
            • 6883

            #20
            Sure, floating point has it's place. But in this case, it really is fundamentally an integer operation. I posted the correct arithmetic earlier. No, you do not want to add first then multiply. Multiply first then add.

            Comment

            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎