X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.c;h=656057fbebd98c0c5d1f9df74f3e27cb087de996;hb=6245ae3447f2f001412b05d37dc4482a5256656f;hp=2d26ca3b379b236f1e1a6f8104a0f1a4b9b0dd0d;hpb=1de8b6541c48f02c1c5430b9938ece2a7b480149;p=16.git diff --git a/src/lib/16_head.c b/src/lib/16_head.c old mode 100644 new mode 100755 index 2d26ca3b..656057fb --- a/src/lib/16_head.c +++ b/src/lib/16_head.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -157,3 +157,27 @@ US_CheckParm(char *parm,char **strings) exit(exit_code); }*/ + +byte dirchar(byte in) +{ + byte out; + switch(in) + { + case 0: //up + out = 0x1E; + break; + case 4: //down + out = 0x1F; + break; + case 1: //left + out = 0x11; + break; + case 3: //right + out = 0x10; + break; + default: //null + out = 0xB3; + break; + } + return out; +}