- updated code to protect against null pointers and uninitialized values and threading issues

This commit is contained in:
Mark Vejvoda
2013-02-04 08:30:43 +00:00
parent d02f91d2e0
commit f87b8b6ee2
35 changed files with 332 additions and 188 deletions

View File

@@ -328,7 +328,7 @@ void Renderer::reset(int w, int h, PlayerColor playerColor) {
glLoadIdentity();
glTranslatef(0, -1.5, -5);
Texture2D *customTexture;
Texture2D *customTexture=NULL;
switch(playerColor) {
case pcRed:
customTexture= customTextureRed;
@@ -462,7 +462,7 @@ void Renderer::renderParticleManager() {
}
Texture2D * Renderer::getPlayerColorTexture(PlayerColor playerColor) {
Texture2D *customTexture;
Texture2D *customTexture=NULL;
switch(playerColor){
case pcRed:
customTexture= customTextureRed;