RCRPG/C: Difference between revisions
Content added Content deleted
m (→Code: cbreak() < cbreak) |
m (→Code: restored changes previously made by underscore (lost since I had modified my local copy)) |
||
Line 43: | Line 43: | ||
#include <stdarg.h> |
#include <stdarg.h> |
||
#include <time.h> |
#include <time.h> |
||
#include <strings.h> |
|||
#include <string.h> |
#include <string.h> |
||
Line 408: | Line 407: | ||
case 'u': |
case 'u': |
||
case 'd': |
case 'd': |
||
d = |
d = strchr(str_dirs, c) - str_dirs; |
||
if ( ((my_pos.ns + incdir[d].ns) >= NS_LIMIT) || |
if ( ((my_pos.ns + incdir[d].ns) >= NS_LIMIT) || |
||
((my_pos.ew + incdir[d].ew) >= EW_LIMIT) || |
((my_pos.ew + incdir[d].ew) >= EW_LIMIT) || |
||
Line 508: | Line 507: | ||
case 'u': |
case 'u': |
||
case 'd': |
case 'd': |
||
d = |
d = strchr(str_dirs, c) - str_dirs; |
||
if ( currentroom->dirs[d] == NULL ) { |
if ( currentroom->dirs[d] == NULL ) { |
||
clrtoeol(); |
clrtoeol(); |