X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_head.c;h=027693d501664062130bc257985efb7fb0ae715d;hb=43e4f16377fe2d0ed99feaa15d6992df6fa34c7c;hp=2d26ca3b379b236f1e1a6f8104a0f1a4b9b0dd0d;hpb=f1605e99959acfb32b36ae875601fc14dd670742;p=16.git diff --git a/src/lib/16_head.c b/src/lib/16_head.c index 2d26ca3b..027693d5 100755 --- 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 & yakui-lover * * 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; +}