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:
parent
1f161e2217
commit
5ee92bc1ee
@ -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;
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user