1
0

backport "Few minor C++ fixes" not at all

* backport 344ef13bc0
* we are using irrlilch 1.8 so
  https://irrlicht.sourceforge.io/docu/classirr_1_1video_1_1_i_video_driver.html#a8c02ee280bb738cdf38b77e7a798244e
* do not remove the IrrlichtDevice due backguard compatibilty
This commit is contained in:
mckaygerhard 2024-06-02 00:13:18 -04:00
parent 1f161e2217
commit 5ee92bc1ee
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ video::ITexture *guiScalingResizeCached(video::IVideoDriver *driver,
#endif #endif
// Convert the scaled image back into a texture. // Convert the scaled image back into a texture.
scaled = driver->addTexture(scalename, destimg, NULL); scaled = driver->addTexture(scalename, destimg, NULL); // irr 1.8
destimg->drop(); destimg->drop();
g_txrCache[scalename] = scaled; g_txrCache[scalename] = scaled;

View File

@ -398,7 +398,7 @@ void TerminalChatConsole::step(int ch)
minutes = (float)minutes / 1000 * 60; minutes = (float)minutes / 1000 * 60;
if (m_game_time) if (m_game_time)
printw(" | Game %d Time of day %02d:%02d ", printw(" | Game %ld Time of day %02d:%02d ",
m_game_time, hours, minutes); m_game_time, hours, minutes);
// draw text // draw text