From 45a5e1e865ec02892054080e1fc0b7e7c463e9d3 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 12 Aug 2012 19:28:22 +0200 Subject: Object handling in CEngine - finished rewriting CEngine object, shadow, etc. handling - refactored texture code - added new log levels --- src/graphics/engine/cloud.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/graphics/engine/cloud.cpp') diff --git a/src/graphics/engine/cloud.cpp b/src/graphics/engine/cloud.cpp index f3c0002..d7bac0f 100644 --- a/src/graphics/engine/cloud.cpp +++ b/src/graphics/engine/cloud.cpp @@ -43,7 +43,7 @@ Gfx::CCloud::CCloud(CInstanceManager* iMan, Gfx::CEngine* engine) m_subdiv = 8; m_enable = true; - m_line.reserve(CLOUD_LINE_PREALLOCATE_COUNT); + m_lines.reserve(CLOUD_LINE_PREALLOCATE_COUNT); } Gfx::CCloud::~CCloud() @@ -107,7 +107,7 @@ void Gfx::CCloud::Draw() if ( !m_enable ) return; if ( m_level == 0.0f ) return; - if ( m_lineUsed == 0 ) return; + if ( m_linesUsed == 0 ) return; vertex = (D3DVERTEX2*)malloc(sizeof(D3DVERTEX2)*(m_brick+2)*2); @@ -155,11 +155,11 @@ void Gfx::CCloud::Draw() n = Math::Vector(0.0f, -1.0f, 0.0f); // Draws all the lines. - for ( i=0 ; i