Skip to content

Instantly share code, notes, and snippets.

@labeneator
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save labeneator/8129c1ad42fe814b93ce to your computer and use it in GitHub Desktop.

Select an option

Save labeneator/8129c1ad42fe814b93ce to your computer and use it in GitHub Desktop.
Patch to enable xpilot to build on osx
diff --git a/src/server/suibotdef.c b/src/server/suibotdef.c
index 494f73f..d5202e3 100644
--- a/src/server/suibotdef.c
+++ b/src/server/suibotdef.c
@@ -405,7 +405,7 @@ static bool Get_object_proximity(player_t *pl, object_t *shot, double sqmaxdist,
/* ignore if there is enough time to deal with this object later */
if((time_until_closest < 0) || (time_until_closest > maxtime))
/*option instead of fixed value: options.dodgetime))*/
+ return false;
- return;
/* get the square of the distance */
sqdistance =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment