Skip to content

Instantly share code, notes, and snippets.

@jmtd
Created July 20, 2016 15:41
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/5be77a456188902d0ded670e5699cc50 to your computer and use it in GitHub Desktop.
Save jmtd/5be77a456188902d0ded670e5699cc50 to your computer and use it in GitHub Desktop.
// can we fit in the skill level? (e.g. 'skill3')
if ((end - cursor) - maplen >= 6)
{
// M_snprintf writes a \0 that we don't need, hence 7 here
M_snprintf(cursor, 7, "skill%1d", startskill);
cursor += 6;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment