Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code cleanup branch
08-01-2006, 01:46 AM,
#1
Code cleanup branch
I've been doing a little work on a new branch called code-cleanup. You can check it out like this:

Code:
svn co http://svn.vdrift.net/repos/vdrift/branches/code-cleanup vdrift-code-cleanup

At the moment this will nearly compile but throws tons of linker errors. Essentially what I've done is moved all the global variables and functions from main.cpp into a class called VGAME.

Now, all the functions in all the other classes that used to use those globals are unable to find the functions they need...so something will have to replace them. I suspect I will make some of the functions and variables in VGAME public so that the functions can be called and the variables can be used as they used to by just following a reference to the VGAME object. But I guess that means it has to be global....sigh. I guess I could code data return paths into the various places that need them like I did with the Gui class. Hmmm...I think I'll sleep on it. If anyone has any ideas about how I should make the globals not-global as gracefully as possible, speak up. Smile
Reply


Messages In This Thread
Code cleanup branch - by thelusiv - 08-01-2006, 01:46 AM
[No subject] - by FFuser - 08-01-2006, 05:34 AM
[No subject] - by joevenzon_phpbb2_import3 - 08-01-2006, 08:28 PM
[No subject] - by thelusiv - 08-01-2006, 08:39 PM
[No subject] - by alex25 - 08-01-2006, 11:38 PM
[No subject] - by thelusiv - 08-03-2006, 12:31 AM
[No subject] - by joevenzon_phpbb2_import3 - 08-03-2006, 10:28 PM
[No subject] - by thelusiv - 08-03-2006, 10:33 PM
[No subject] - by thelusiv - 08-03-2006, 10:33 PM
[No subject] - by matthew_i - 08-04-2006, 01:20 AM
[No subject] - by matthew_i - 08-04-2006, 01:20 AM
[No subject] - by thelusiv - 08-04-2006, 01:38 AM
[No subject] - by thelusiv - 08-04-2006, 01:38 AM
[No subject] - by matthew_i - 08-04-2006, 01:41 AM
[No subject] - by matthew_i - 08-04-2006, 01:41 AM
[No subject] - by thelusiv - 08-04-2006, 01:53 AM
[No subject] - by thelusiv - 08-04-2006, 01:53 AM
[No subject] - by matthew_i - 08-04-2006, 01:58 AM
[No subject] - by matthew_i - 08-04-2006, 01:58 AM
[No subject] - by thelusiv - 08-04-2006, 09:08 AM
[No subject] - by thelusiv - 08-04-2006, 09:08 AM
[No subject] - by joevenzon_phpbb2_import3 - 08-04-2006, 08:38 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-04-2006, 08:38 PM
[No subject] - by matthew_i - 08-06-2006, 02:43 PM
[No subject] - by matthew_i - 08-06-2006, 02:43 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-06-2006, 07:45 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-06-2006, 07:45 PM
[No subject] - by matthew_i - 08-06-2006, 11:25 PM
[No subject] - by matthew_i - 08-06-2006, 11:25 PM
[No subject] - by joevenzon_phpbb2_import3 - 08-07-2006, 09:26 AM
[No subject] - by joevenzon_phpbb2_import3 - 08-07-2006, 09:26 AM
[No subject] - by thelusiv - 08-07-2006, 04:43 PM
[No subject] - by thelusiv - 08-07-2006, 04:43 PM
[No subject] - by clytle374 - 08-07-2006, 04:51 PM
[No subject] - by clytle374 - 08-07-2006, 04:51 PM
[No subject] - by thelusiv - 08-07-2006, 06:25 PM
[No subject] - by thelusiv - 08-07-2006, 06:25 PM
[No subject] - by clytle374 - 08-08-2006, 12:47 AM
[No subject] - by clytle374 - 08-08-2006, 12:47 AM
[No subject] - by thelusiv - 08-08-2006, 09:05 AM
[No subject] - by thelusiv - 08-08-2006, 09:05 AM
[No subject] - by clytle374 - 08-08-2006, 07:19 PM
[No subject] - by clytle374 - 08-08-2006, 07:19 PM

Forum Jump:


Users browsing this thread: 9 Guest(s)