Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Meaningless code in Font.cpp  (Read 2389 times)

0 Members and 1 Guest are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Meaningless code in Font.cpp
« on: July 18, 2010, 10:33:07 pm »
This concerns a recent SVN modification (in this thread). I stumpled upon
Code: [Select]
   if (codePoint == 100)
        codePoint = codePoint;
in line 156-157 of Font.cpp. I don't think this is intended, so I'm telling you. Just in case you wanted to achieve something different, but were overtired at the moment you wrote that. :D

Or did you just experiment and haven't removed it yet? ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Meaningless code in Font.cpp
« Reply #1 on: July 18, 2010, 10:43:48 pm »
Oups, thank you :mrgreen:

That was some debug stuff from the last fix, I indeed forgot to remove it.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Meaningless code in Font.cpp
« Reply #2 on: July 18, 2010, 10:49:02 pm »
No problem. :)

But it's interesting, I have looked at the updated files only very rarely. Seems to be a lucky hit. ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything