diff --git a/src/map/map_fog.cpp b/src/map/map_fog.cpp index 6de838286..6f4c0ae9e 100644 --- a/src/map/map_fog.cpp +++ b/src/map/map_fog.cpp @@ -430,9 +430,11 @@ global void MapUnmarkSight(const Player* player,int tx,int ty,int range) ** @param tx X center position. ** @param ty Y center position. ** @param range Radius to mark. +** @param dx Delta in tiles in X direction. +** @param dy Delta in tiles in Y direction. */ global void MapMarkNewSight(const Player* player,int tx,int ty,int range - ,int dx __attribute__((unused)),int dy __attribute__((unused))) + ,int dx,int dy) { /// It's faster to mark then unmark. MapMarkSight(player,tx,ty,range); diff --git a/src/unit/unit_cache.cpp b/src/unit/unit_cache.cpp index 677d4d9d3..82be86c49 100644 --- a/src/unit/unit_cache.cpp +++ b/src/unit/unit_cache.cpp @@ -800,23 +800,25 @@ global void InitUnitCache(void) ** it may be into the building or corpse list ** ** @param unit Unit pointer to insert into list -**/ -global void DeadCacheInsert(Unit* unit,Unit** List) +** @param list The list to insert into +*/ +global void DeadCacheInsert(Unit* unit,Unit** list) { - unit->Next=*List; - *List=unit; + unit->Next=*list; + *list=unit; } /** ** Removes a corpse from the current corpse list ** ** @param unit Unit pointer to remove from list -**/ -global void DeadCacheRemove(Unit* unit, Unit** List ) +** @param list The list to remove from +*/ +global void DeadCacheRemove(Unit* unit, Unit** list) { Unit** prev; - prev=List; + prev=list; DebugCheck( !*prev ); while( *prev ) { // find the unit, be bug friendly if( *prev==unit ) { diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index 1e9500996..5c2eb1fe2 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -310,6 +310,7 @@ global void Invalidate(void) ** Convert SDL keysym into internal keycode. ** ** @param code SDL keysym structure pointer. +** @param keychar Internal keycode. ** ** @return ASCII code or internal keycode. */ @@ -470,8 +471,8 @@ local int Sdl2InternalKeycode(const SDL_keysym * code, int *keychar) /** ** Handle keyboard key press! ** -** @param callback Callback funktion for key down. -** @param code SDL keysym structure pointer. +** @param callbacks Callback funktion for key down. +** @param code SDL keysym structure pointer. */ local void SdlHandleKeyPress(const EventCallback* callbacks, const SDL_keysym* code) @@ -486,8 +487,8 @@ local void SdlHandleKeyPress(const EventCallback* callbacks, /** ** Handle keyboard key release! ** -** @param callback Callback funktion for key up. -** @param code SDL keysym structure pointer. +** @param callbacks Callback funktion for key up. +** @param code SDL keysym structure pointer. */ local void SdlHandleKeyRelease(const EventCallback* callbacks, const SDL_keysym* code) @@ -502,8 +503,8 @@ local void SdlHandleKeyRelease(const EventCallback* callbacks, /** ** Handle interactive input event. ** -** @param callback Callback structure for events. -** @param event SDL event structure pointer. +** @param callbacks Callback structure for events. +** @param event SDL event structure pointer. */ local void SdlDoEvent(const EventCallback* callbacks, const SDL_Event * event) {