Off Topic? Visual Studio Annoyance


(jet Pilot) #1

Not sure if this is code related, or a bug in Visual Studio. Either way, it’s quite an annoyance!

In the function CG_DrawFireTeamOverlay, (in cg_fireteamoverlay.c) tooltip help messes up in this bit of code (and everything after it in the file)

When I hover over i in the for statement, it works fine

Same with CG_SortedFireTeamPlayerForPosition

But everything after that lists as int max

There’s no int max in the function, and “Go to Definition” brings up a huge list, mostly from standard headers. I really like my Go to Definition tool, and I like to use it, but I don’t know what’s going on! Everything compiles fine, and anything I put above it works as it should. If I comment out the block, everthing also works as it should!

If anyone knows what this is about, please let me know.


(jet Pilot) #2

I think I’ve solved this, it actually happened anywhere after CG_SortedFireTeamPlayerForPosition() was called. When hilighting it, it gave me different parameters (in the second picture you can see it’s just (int pos). After googling around to no avail, deleting my .ncb files and all the rest, it still wouldn’t go away. Browsning the menus, i came across “Parameter Info” (Edit > IntellSense > Parameter Info or Ctrl+Shift+Space), which fixed it. Hope this helps anyone else frustrated by this stupid annoyance.