@@ -145,9 +145,11 @@ class C_BreakableSurface : public C_BaseEntity, public IBrushRenderer
145
145
146
146
void DrawRenderList ( IBrushSurface* pBrushSurface);
147
147
void DrawRenderListHighlights ( IBrushSurface* pBrushSurface );
148
- int FindRenderPanel (int nWidth, int nHeight, WinSide_t nSide);
148
+ // dimhotepus: int -> unsigned short.
149
+ unsigned short FindRenderPanel (int nWidth, int nHeight, WinSide_t nSide);
149
150
void AddToRenderList (int nWidth, int nHeight, WinSide_t nSide, WinEdge_t nEdgeType, int forceStyle);
150
- int FindFirstRenderTexture (WinEdge_t nEdgeType, int nStyle);
151
+ // dimhotepus: int -> unsigned short.
152
+ unsigned short FindFirstRenderTexture (WinEdge_t nEdgeType, int nStyle);
151
153
152
154
inline void SetStyleType ( int w, int h, int type )
153
155
{
@@ -809,9 +811,9 @@ void C_BreakableSurface::UpdateEdgeType(int nWidth, int nHeight, int forceStyle
809
811
// Input :
810
812
// Output :
811
813
// --------------------------------------------------------------------------------
812
- int C_BreakableSurface::FindRenderPanel (int nWidth, int nHeight, WinSide_t nWinSide)
814
+ unsigned short C_BreakableSurface::FindRenderPanel (int nWidth, int nHeight, WinSide_t nWinSide)
813
815
{
814
- for ( unsigned short i = m_RenderList.Head (); i != m_RenderList.InvalidIndex (); i = m_RenderList.Next (i) )
816
+ for ( auto i = m_RenderList.Head (); i != m_RenderList.InvalidIndex (); i = m_RenderList.Next (i) )
815
817
{
816
818
if (m_RenderList[i].m_nSide == nWinSide &&
817
819
m_RenderList[i].m_nWidth == nWidth &&
@@ -828,9 +830,9 @@ int C_BreakableSurface::FindRenderPanel(int nWidth, int nHeight, WinSide_t nWinS
828
830
// Input :
829
831
// Output :
830
832
// ----------------------------------------------------------------------------------
831
- int C_BreakableSurface::FindFirstRenderTexture (WinEdge_t nEdgeType, int nStyle)
833
+ unsigned short C_BreakableSurface::FindFirstRenderTexture (WinEdge_t nEdgeType, int nStyle)
832
834
{
833
- for ( unsigned short i = m_RenderList.Head (); i != m_RenderList.InvalidIndex (); i = m_RenderList.Next (i) )
835
+ for ( auto i = m_RenderList.Head (); i != m_RenderList.InvalidIndex (); i = m_RenderList.Next (i) )
834
836
{
835
837
if (m_RenderList[i].m_nStyle == nStyle &&
836
838
m_RenderList[i].m_nEdgeType == nEdgeType )
@@ -850,7 +852,7 @@ void C_BreakableSurface::AddToRenderList(int nWidth, int nHeight, WinSide_t nSid
850
852
{
851
853
// -----------------------------------------------------
852
854
// Try to find old panel
853
- int nOldPanelIndex = FindRenderPanel (nWidth,nHeight,nSide);
855
+ unsigned short nOldPanelIndex = FindRenderPanel (nWidth,nHeight,nSide);
854
856
855
857
// -----------------------------------------------------
856
858
// If I have an old panel, get it's style and remove it
0 commit comments