May 17

The score so far…

Tag: VectorStormtrevor @ 8:06 pm

From a quick investigation of the current MMORPG Tycoon 2 codebase, I discovered:

  • hilite : 189 instances
  • hilight:  103 instances
  • highlight (the correct spelling):  3 instances

One of which was this:  ”float m_hilightLength; // how long is my highlight?”

And to think that I thought I was a stickler for spelling in my codebases!  Fixing it now.  :)

One Response to “The score so far…”

  1. trevor says:

    For anyone curious, that snippet of code came from legacy code inherited from v1. You may recall the effect used to “draw in” vector graphics over time, where a hot point would move along the shape, leaving behind colour that would slowly fade away. This variable was used to set the length of that “hot point” which was doing the drawing.

    Unfortunately, that effect doesn’t currently work with the new, higher-performance graphic engine that’s in VectorStorm. Someday I’ll figure out a good way to re-implement it, but for now, it’s just sitting around taking up space on my hard disk.