Opened 8 years ago

Last modified 7 months ago

#4211 new defect

Remove references to globals — at Initial Version

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Core engine Keywords:
Cc: Patch:

Description

Globals should be avoided in C++, since they have to be checked for initialization in most cases. Instead a static GetFoo function could be used that does that check and returns the instance.

One example would be g_Game being used in various places of source/simulation/.

Change History (0)

Note: See TracTickets for help on using tickets.