1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Cleanup: Replace non-std C++ code

This commit is contained in:
Jannik Vogel 2016-08-09 14:04:40 +02:00
parent bda0107bb1
commit cb347143f8
3 changed files with 2 additions and 7 deletions

View File

@ -113,7 +113,7 @@ TextRenderer::TextInfo::TextInfo()
}
TextRenderer::TextRenderer(GameRenderer* renderer)
: fonts({}), renderer(renderer)
: renderer(renderer)
{
textShader = renderer->getRenderer()->createShader(
TextVertexShader, TextFragmentShader );

View File

@ -424,7 +424,7 @@ void RWGame::tick(float dt)
}
// Clean up old VisualFX
for( ssize_t i = 0; i < static_cast<ssize_t>(world->effects.size()); ++i )
for( int i = 0; i < static_cast<int>(world->effects.size()); ++i )
{
VisualFX* effect = world->effects[i];
if( effect->getType() == VisualFX::Particle )

View File

@ -354,11 +354,6 @@ namespace RW
return *reinterpret_cast<T*>(data+offset+sizeof(BSSectionHeader)+internalOffset);
}
template<class T*> T* readSubStructure(size_t internalOffset)
{
return reinterpret_cast<T*>(data+offset+sizeof(BSSectionHeader)+internalOffset);
}
template<class T> T readRaw(size_t internalOffset)
{
return *reinterpret_cast<T*>(data+offset+internalOffset);