From: Gwyn Ciesla Date: Tue, 31 Jan 2017 23:49:15 +0000 (-0600) Subject: 1.12 X-Git-Tag: 1.12 X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=cb34e755a2311ca316a570d2fbb29cca7eeade8b;p=curblaster.git 1.12 cppcheck --- diff --git a/Makefile b/Makefile index 84def90..f3965a2 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,10 @@ remove: rm $(INST)/curblaster uninstall: remove +check: + cppcheck --enable=warning,style,unusedFunction . +test: check + clean: rm *.o rm curblaster diff --git a/enemy_shoot.cpp b/enemy_shoot.cpp index 1db529c..300c72e 100644 --- a/enemy_shoot.cpp +++ b/enemy_shoot.cpp @@ -7,7 +7,7 @@ game_object enemy_shoot(game_object enemy, game_object player, game_object shot, int enshotchannel, Mix_Chunk *enshotsound){ int multiplier = 1; - enshotchannel = play_sound_effect(enshotsound, enshotchannel); + play_sound_effect(enshotsound, enshotchannel); shot.active=1; //set direction if(player.yodds){ for(int puploop = 0; puploop<4; puploop++){ if(powerups[puploop].active==0){ diff --git a/powerup.h b/powerup.h index 7f569df..653d59d 100644 --- a/powerup.h +++ b/powerup.h @@ -1,2 +1,2 @@ game_object powerup_init(game_object, game_object); -void determine_powerup(game_object[], game_object, int, Mix_Chunk*, int); +void determine_powerup(game_object[], game_object&, int, Mix_Chunk*, int);