diff --git a/eng/moteur.c b/eng/moteur.c index 94f7814..c69e5ef 100644 --- a/eng/moteur.c +++ b/eng/moteur.c @@ -37,7 +37,6 @@ void move(RcGame *game) { V2d *dir = &game->player.dir; V2d *pos = &game->player.pos; int map_w = game->current_map->w; - int map_h = game->current_map->h; fixed_t oldDirX; fixed_t oldPlaneX; diff --git a/include/C3D/config.h b/include/C3D/config.h index 4355c05..5566c13 100644 --- a/include/C3D/config.h +++ b/include/C3D/config.h @@ -7,7 +7,7 @@ #define screen_w 128 #define screen_h 64 -#define viewport_w 100 +#define viewport_w 109 #define viewport_h 64 #define max_dist fix(32) //Max sprites to attempt to render @@ -32,6 +32,6 @@ //===== Paramètres de debug ===== -#define debug 1 //pour afficher les infos de debug +#define debug 0 //pour afficher les infos de debug #define asm_opti 0 diff --git a/src/.game.c b/src/.game.c new file mode 100644 index 0000000..2115bd2 Binary files /dev/null and b/src/.game.c differ diff --git a/src/game.c b/src/game.c index 9113449..6ff1e40 100644 --- a/src/game.c +++ b/src/game.c @@ -129,13 +129,10 @@ WeaponStat weapon_stats[] = { }; void weapon_hurt_stuff(CCGame *game){ - Sprite *hit; + Sprite *hit = NULL; int dist = raycast((RcGame*)game, &((RcGame*)game)->player, &hit); if(dist > weapon_stats[game->curr_weapon].range || !hit) return; - //:p - if(hit > 0x90000000) - return; hit->hp -= weapon_stats[game->curr_weapon].dmg; } diff --git a/src/gfx.c b/src/gfx.c index 8b7e687..36d3cb1 100644 --- a/src/gfx.c +++ b/src/gfx.c @@ -97,7 +97,7 @@ void draw_hands(CCGame *game){ void draw_gui(CCGame *game){ draw_hands(game); - dline(100,0,100,63,3); + dline(109,0,109,63,3); dprint_opt(127,10,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"%d",game->_bgame.player.hp); //TODO : replace w/ icon dtext_opt(127,20,3,C_NONE,DTEXT_RIGHT,DTEXT_TOP,"HP",-1);