fixed some merge problems

This commit is contained in:
oy 2013-02-24 18:55:55 +01:00
parent 118d2ac837
commit 0e92dd5603
6 changed files with 7 additions and 11 deletions

View file

@ -700,13 +700,10 @@ void CGraphics_OpenGL::QuadsDrawFreeform(const CFreeformItem *pArray, int Num)
AddVertices(4*Num);
}
void CGraphics_OpenGL::QuadsText(float x, float y, float Size, float r, float g, float b, float a, const char *pText)
void CGraphics_OpenGL::QuadsText(float x, float y, float Size, const char *pText)
{
float StartX = x;
QuadsBegin();
SetColor(r,g,b,a);
while(*pText)
{
char c = *pText;
@ -730,8 +727,6 @@ void CGraphics_OpenGL::QuadsText(float x, float y, float Size, float r, float g,
x += Size/2;
}
}
QuadsEnd();
}
int CGraphics_OpenGL::Init()

View file

@ -119,7 +119,7 @@ public:
virtual void QuadsDraw(CQuadItem *pArray, int Num);
virtual void QuadsDrawTL(const CQuadItem *pArray, int Num);
virtual void QuadsDrawFreeform(const CFreeformItem *pArray, int Num);
virtual void QuadsText(float x, float y, float Size, float r, float g, float b, float a, const char *pText);
virtual void QuadsText(float x, float y, float Size, const char *pText);
virtual int Init();
};

View file

@ -277,7 +277,7 @@ int CGraphics_Threaded::UnloadTexture(int Index)
Cmd.m_Slot = Index;
m_pCommandBuffer->AddCommand(Cmd);
m_aTextures[Index] = m_FirstFreeTexture;
m_aTextureIndices[Index] = m_FirstFreeTexture;
m_FirstFreeTexture = Index;
return 0;
}

View file

@ -1449,7 +1449,7 @@ void CEditor::DoQuadEnvelopes(const array<CQuad> &lQuads, int TexID)
Graphics()->LinesEnd();
//Draw Quads
Graphics()->TextureSet(Texture);
Graphics()->TextureSet(TexID);
Graphics()->QuadsBegin();
for(int j = 0; j < Num; j++)
@ -1510,7 +1510,7 @@ void CEditor::DoQuadEnvelopes(const array<CQuad> &lQuads, int TexID)
}
}
Graphics()->QuadsEnd();
Graphics()->TextureClear();
Graphics()->TextureSet(-1);
Graphics()->QuadsBegin();
// Draw QuadPoints

View file

@ -98,7 +98,7 @@ bool CGameControllerCTF::CanBeMovedOnBalance(int ClientID)
for(int fi = 0; fi < 2; fi++)
{
CFlag *F = m_apFlags[fi];
if(F->m_pCarryingCharacter == Character)
if(F && F->m_pCarryingCharacter == Character)
return false;
}
}

View file

@ -7,6 +7,7 @@
#include <game/version.h>
#include "versionsrv.h"
#include "mapversions.h"
enum {
MAX_MAPS_PER_PACKET=48,