Skip to content

Instantly share code, notes, and snippets.

@jmtd
Created July 20, 2016 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmtd/1b2fcfb729e3b276c27140e3eb4ea365 to your computer and use it in GitHub Desktop.
Save jmtd/1b2fcfb729e3b276c27140e3eb4ea365 to your computer and use it in GitHub Desktop.
// can we fit in the skill level?
if ((end - cursor + 1) - maplen >= sizeof "skillX " - sizeof "")
{
char *p = "skill0 ";
while(*p)
{
*cursor++ = *p++;
}
cursor[-2] += startskill;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment