refactor
This commit is contained in:
parent
1a55403d9d
commit
635aedce92
23
w/w.c
23
w/w.c
|
@ -2,16 +2,16 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define CMD_LEN 10
|
||||
#define NAME_LEN 10
|
||||
#define POV_3D_SIZE 10
|
||||
#define POV_SIZE 3
|
||||
#define NULL_CMD "-"
|
||||
#define CMD_LEN 10
|
||||
#define NAME_LEN 10
|
||||
#define POV_3D_SIZE 10
|
||||
#define POV_SIZE 3
|
||||
#define NULL_CMD "-"
|
||||
|
||||
#define PLACE_TITLE 0
|
||||
#define PLACE_SETNAME 1
|
||||
#define PLACE_STATION 2
|
||||
#define PLACE_MAP 3
|
||||
#define PLACE_TITLE 0
|
||||
#define PLACE_SETNAME 1
|
||||
#define PLACE_STATION 2
|
||||
#define PLACE_MAP 3
|
||||
|
||||
typedef struct {
|
||||
int x;
|
||||
|
@ -233,6 +233,11 @@ void update3dpov()
|
|||
}
|
||||
}
|
||||
|
||||
char currentchar()
|
||||
{
|
||||
return charatpos(state.location.x, state.location.y);
|
||||
}
|
||||
|
||||
void updatepov()
|
||||
{
|
||||
int x = state.location.x;
|
||||
|
|
Loading…
Reference in New Issue