Skip to content

Commit

Permalink
rename player control callback for specified id's to silence warning
Browse files Browse the repository at this point in the history
It is better to have different names for different callbacks.
  • Loading branch information
MDT-Maikel committed Apr 29, 2016
1 parent 904bf78 commit f4ae764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planet/System.ocg/PlayerControl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ global func PlayerControl(int plr, int ctrl, id spec_id, int x, int y, int stren
//Log("%d, %s, %i, %d, %d, %d, %v, %v", plr, GetPlayerControlName(ctrl), spec_id, x,y,strength, repeat, status);
if (status == CONS_Moved) return false;
// Control handled by definition? Forward
if (spec_id) return spec_id->PlayerControl(plr, ctrl, x, y, strength, repeat, release);
if (spec_id) return spec_id->ForwardedPlayerControl(plr, ctrl, x, y, strength, repeat, release);

// Forward control to player
if (Control2Player(plr,ctrl, x, y, strength, repeat, release)) return true;
Expand Down

0 comments on commit f4ae764

Please sign in to comment.