mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
Cleanup: Replace non-std C++ code
This commit is contained in:
parent
bda0107bb1
commit
cb347143f8
@ -113,7 +113,7 @@ TextRenderer::TextInfo::TextInfo()
|
||||
}
|
||||
|
||||
TextRenderer::TextRenderer(GameRenderer* renderer)
|
||||
: fonts({}), renderer(renderer)
|
||||
: renderer(renderer)
|
||||
{
|
||||
textShader = renderer->getRenderer()->createShader(
|
||||
TextVertexShader, TextFragmentShader );
|
||||
|
@ -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 )
|
||||
|
@ -353,11 +353,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user