Este sitio web funciona mejor con JavaScript.
Inicio
Ayuda
Iniciar sesión
lolengine
/
lol
réplica de
https://github.com/lolengine/lol
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Slightly change the ...Data initialisation in classes.
legacy
Sam Hocevar
sam
hace 14 años
padre
fc8a377031
commit
f84b659c62
Se han
modificado 13 ficheros
con
13 adiciones
y
14 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-2
src/debugfps.cpp
+1
-1
src/debugrecord.cpp
+1
-1
src/debugsphere.cpp
+1
-1
src/debugstats.cpp
+1
-1
src/dict.cpp
+1
-1
src/font.cpp
+1
-1
src/map.cpp
+1
-1
src/sample.cpp
+1
-1
src/scene.cpp
+1
-1
src/sdlinput.cpp
+1
-1
src/tileset.cpp
+1
-1
src/timer.cpp
+1
-1
src/world.cpp
+ 1
- 2
src/debugfps.cpp
Ver fichero
@@ -35,9 +35,8 @@ private:
*/
DebugFps::DebugFps(int x, int y)
: data(new DebugFpsData())
{
data = new DebugFpsData();
data->fontid = Forge::Register("gfx/font/ascii.png");
data->x = x;
data->y = y;
+ 1
- 1
src/debugrecord.cpp
Ver fichero
@@ -43,8 +43,8 @@ private:
*/
DebugRecord::DebugRecord(char const *path)
: data(new DebugRecordData())
{
data = new DebugRecordData();
data->path = strdup(path);
data->width = 0;
data->height = 0;
+ 1
- 1
src/debugsphere.cpp
Ver fichero
@@ -111,8 +111,8 @@ GLuint const DebugSphereData::tindices[20][3] =
*/
DebugSphere::DebugSphere()
: data(new DebugSphereData())
{
data = new DebugSphereData();
data->time = 0.0f;
}
+ 1
- 1
src/debugstats.cpp
Ver fichero
@@ -34,8 +34,8 @@ private:
*/
DebugStats::DebugStats(char const *path)
: data(new DebugStatsData())
{
data = new DebugStatsData();
data->fp = fopen(path, "w+");
gamegroup = GAMEGROUP_AFTER;
+ 1
- 1
src/dict.cpp
Ver fichero
@@ -57,8 +57,8 @@ private:
*/
Dict::Dict()
: data(new DictData())
{
data = new DictData();
}
Dict::~Dict()
+ 1
- 1
src/font.cpp
Ver fichero
@@ -49,8 +49,8 @@ private:
*/
Font::Font(char const *path)
: data(new FontData())
{
data = new FontData();
data->name = strdup(path);
data->img = NULL;
+ 1
- 1
src/map.cpp
Ver fichero
@@ -45,8 +45,8 @@ private:
*/
Map::Map(char const *path)
: data(new MapData())
{
data = new MapData();
data->ntilers = 0;
data->layers = NULL;
data->nlayers = 0;
+ 1
- 1
src/sample.cpp
Ver fichero
@@ -37,8 +37,8 @@ private:
*/
Sample::Sample(char const *path)
: data(new SampleData())
{
data = new SampleData();
data->name = strdup(path);
data->chunk = Mix_LoadWAV(path);
}
+ 1
- 1
src/scene.cpp
Ver fichero
@@ -61,8 +61,8 @@ private:
*/
Scene::Scene(float angle)
: data(new SceneData())
{
data = new SceneData();
data->tiles = 0;
data->ntiles = 0;
data->angle = angle;
+ 1
- 1
src/sdlinput.cpp
Ver fichero
@@ -34,10 +34,10 @@ private:
*/
SdlInput::SdlInput()
: data(new SdlInputData())
{
SDL_Init(SDL_INIT_TIMER);
data = new SdlInputData();
SDL_GetMouseState(&data->mx, &data->my);
gamegroup = GAMEGROUP_BEFORE;
+ 1
- 1
src/tileset.cpp
Ver fichero
@@ -54,8 +54,8 @@ private:
*/
TileSet::TileSet(char const *path, int w, int h, float dilate)
: data(new TileSetData())
{
data = new TileSetData();
data->name = strdup(path);
data->tiles = NULL;
data->img = NULL;
+ 1
- 1
src/timer.cpp
Ver fichero
@@ -102,8 +102,8 @@ private:
*/
Timer::Timer()
: data(new TimerData())
{
data = new TimerData();
}
Timer::~Timer()
+ 1
- 1
src/world.cpp
Ver fichero
@@ -36,8 +36,8 @@ private:
*/
World::World()
: data(new WorldData())
{
data = new WorldData();
data->width = 0;
data->height = 0;
Escribir
Vista previa
Cargando…
Cancelar
Guardar