Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit b5762f2

Browse files
authored
Merge pull request #3 from caseymcc/master
Fixes for linux
2 parents f02201b + b660d4d commit b5762f2

File tree

9 files changed

+23
-15
lines changed

9 files changed

+23
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ bld/
2626
[Bb]in/
2727
[Oo]bj/
2828
[Ll]og/
29+
[Bb]uild/
2930

3031
# Visual Studio 2015/2017 cache/options directory
3132
.vs/

Source/Core/Application/PlatformSpecific.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ namespace Minecraft
7171
info.cpu_usage = percent;
7272
}
7373

74-
#endif
75-
76-
#ifdef _LINUX
74+
#else
7775
void GetProcDebugInfo(ProcessDebugInfo& info)
7876
{
7977
// TODO : Get this on linux

Source/Core/Models/Model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22
#include <vector>
33

4-
#include <gl/glew.h>
4+
#include <GL/glew.h>
55

66
#include "../Utils/Defs.h"
77
#include "../BlockDatabase.h"

Source/Core/World/World.h

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,11 @@
2525
#include "../Utils/Ray.h"
2626
#include "../Clouds/Cloud.h"
2727
#include "../CubeRenderer.h"
28+
#include "WorldGeneratorType.h"
2829
#include "WorldGenerator.h"
2930

3031
namespace Minecraft
3132
{
32-
enum WorldGenerationType
33-
{
34-
Generation_Normal = 0,
35-
Generation_Normal_withoutcaves,
36-
Generation_Hilly,
37-
Generation_Flat,
38-
Generation_FlatWithoutStructures
39-
};
40-
4133
enum CurrentSunCycle
4234
{
4335
Sun_Setting,

Source/Core/World/WorldGenerator.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@
1111
#include "../Noise/FastNoise.h"
1212

1313
#include "World.h"
14+
#include "WorldGeneratorType.h"
1415
#include "Structures/WorldStructures.h"
1516
#include "../Chunk.h"
1617
#include "../Utils/Random.h"
1718
#include "../Utils/Defs.h"
1819

1920
namespace Minecraft
2021
{
21-
enum WorldGenerationType;
22-
2322
enum Biome
2423
{
2524
Grassland = 9,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef _Minecraft_WorldGeneratorType_h_
2+
#define _Minecraft_WorldGeneratorType_h_
3+
4+
namespace Minecraft
5+
{
6+
7+
enum WorldGenerationType
8+
{
9+
Generation_Normal = 0,
10+
Generation_Normal_withoutcaves,
11+
Generation_Hilly,
12+
Generation_Flat,
13+
Generation_FlatWithoutStructures
14+
};
15+
16+
}//namespace Minecraft
17+
18+
#endif//_Minecraft_WorldGeneratorType_h_
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)