Skip to content
Browse files

rename player control callback for specified id's to silence warning

It is better to have different names for different callbacks.
  • Loading branch information
MDT-Maikel committed Apr 29, 2016
1 parent 904bf78 commit f4ae76454bc1ee60747d26b2548b200e32b98593
Showing with 1 addition and 1 deletion.
  1. +1 −1 planet/System.ocg/PlayerControl.c
@@ -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;

0 comments on commit f4ae764

Please sign in to comment.