Merge branch 'GameLogic' of https://github.com/dean11/Danbias into GameLogic
This commit is contained in:
commit
d364456189
|
@ -95,7 +95,7 @@ namespace GameLogic
|
||||||
struct LevelMetaData : ObjectTypeHeader
|
struct LevelMetaData : ObjectTypeHeader
|
||||||
{
|
{
|
||||||
std::string levelName;
|
std::string levelName;
|
||||||
FormatVersion levelVersion;
|
int levelVersion;
|
||||||
std::string levelDescription;
|
std::string levelDescription;
|
||||||
std::string levelAuthor;
|
std::string levelAuthor;
|
||||||
int maxNumberOfPlayer;
|
int maxNumberOfPlayer;
|
||||||
|
|
|
@ -58,8 +58,8 @@ namespace GameLogic
|
||||||
header.levelName.assign(&tempName[0], &tempName[tempSize]);
|
header.levelName.assign(&tempName[0], &tempName[tempSize]);
|
||||||
start += tempSize;
|
start += tempSize;
|
||||||
|
|
||||||
memcpy(&header.levelVersion, &buffer[start], 8);
|
memcpy(&header.levelVersion, &buffer[start], 4);
|
||||||
start += 8;
|
start += 4;
|
||||||
|
|
||||||
memcpy(&tempSize, &buffer[start], 4);
|
memcpy(&tempSize, &buffer[start], 4);
|
||||||
start +=4;
|
start +=4;
|
||||||
|
|
Loading…
Reference in New Issue