Skip to content

Commit

Permalink
some files moved to 'core' directory
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe321 committed Sep 1, 2011
1 parent 8fb425c commit 6c0ccca
Show file tree
Hide file tree
Showing 32 changed files with 22 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Makefile
@@ -1,6 +1,6 @@
all: luke
CC=gcc
CFLAGS=-c -std=gnu99 -Wall -O2 -Wfatal-errors -Werror -g
CFLAGS=-c -std=gnu99 -I./core/ -Wall -O2 -Wfatal-errors -Werror -g

ifeq ($(OS),Windows_NT)
CLIBS=-lglfw -lopengl32 -lpng -lz -lws2_32
Expand All @@ -10,21 +10,21 @@ endif

# core modules
SOURCES= \
window.c \
texture.c \
hashmap.c \
str.c \
queue.c \
array.c \
socket.c \
blit.c \
anim.c \
iso.c \
font.c \
single_player.c \
tcp_client_state.c \
tcp_server_state.c \
rand.c
core/window.c \
core/texture.c \
core/hashmap.c \
core/str.c \
core/queue.c \
core/array.c \
core/socket.c \
core/blit.c \
core/anim.c \
core/iso.c \
core/font.c \
core/single_player.c \
core/tcp_client_state.c \
core/tcp_server_state.c \
core/rand.c

# game modules
SOURCES+= \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions spells/flare.c
Expand Up @@ -119,6 +119,7 @@ static void _free(Spell ** s)
{
Flare *spell = (Flare *) * s;
if (spell->light) {
spell->light->range = 0;
free_isolight(&spell->light);
}
free(*s);
Expand Down Expand Up @@ -172,6 +173,11 @@ Spell* create_flare(int gfx, float x, float y, float mx, float my)
spell->c.fade = 200;
spell->c.exploded = 0;

if (gfx) {
spell->light->x = spell->c.x;
spell->light->y = spell->c.y;
}

return (Spell*)spell;
}

0 comments on commit 6c0ccca

Please sign in to comment.