mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed some merge problems
This commit is contained in:
parent
118d2ac837
commit
0e92dd5603
|
@ -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()
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#include <game/version.h>
|
||||
|
||||
#include "versionsrv.h"
|
||||
#include "mapversions.h"
|
||||
|
||||
enum {
|
||||
MAX_MAPS_PER_PACKET=48,
|
||||
|
|
Loading…
Reference in a new issue