mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 04:14:05 +00:00
some cleanup
This commit is contained in:
parent
484b8a95f0
commit
f5a82931b6
@ -4,11 +4,14 @@
|
||||
#include "../mwworld/environment.hpp"
|
||||
#include "../mwworld/world.hpp"
|
||||
|
||||
struct book
|
||||
namespace
|
||||
{
|
||||
struct book
|
||||
{
|
||||
int endLine;
|
||||
std::list<std::string> pages;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
book formatText(std::string text,book mBook,int maxLine, int lineSize)
|
||||
{
|
||||
@ -44,7 +47,7 @@ book formatText(std::string text,book mBook,int maxLine, int lineSize)
|
||||
//TODO:finnish this
|
||||
break;
|
||||
}
|
||||
if(firstSpace + cLineSize <= lineSize)
|
||||
if(static_cast<int> (firstSpace) + cLineSize <= lineSize)
|
||||
{
|
||||
cLineSize = firstSpace + cLineSize;
|
||||
cString = cString + cText.substr(0,firstSpace +1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user