39 |
#include "ladder.h" |
#include "ladder.h" |
40 |
#include "emote.h" |
#include "emote.h" |
41 |
#include "mink.h" |
#include "mink.h" |
42 |
|
#include "roomproc.h" |
43 |
|
|
44 |
/* Arguments */ |
/* Arguments */ |
45 |
PUBLIC int port, Ladder9, Ladder19, num_19, num_9, completed_games, |
PUBLIC int port, Ladder9, Ladder19, num_19, num_9, completed_games, |
106 |
strncat(player_dir, DEFAULT_PLAYERS, strlen(DEFAULT_PLAYERS)); |
strncat(player_dir, DEFAULT_PLAYERS, strlen(DEFAULT_PLAYERS)); |
107 |
|
|
108 |
|
|
109 |
|
room_dir = (char *)calloc((strlen(root) + strlen(DEFAULT_ROOMS) + 1), |
110 |
|
sizeof(char)); |
111 |
|
strncat(room_dir, root, strlen(root)); |
112 |
|
strncat(room_dir, DEFAULT_ROOMS, strlen(DEFAULT_ROOMS)); |
113 |
|
|
114 |
|
|
115 |
game_dir = (char *)calloc((strlen(root) + strlen(DEFAULT_GAMES) + 1), |
game_dir = (char *)calloc((strlen(root) + strlen(DEFAULT_GAMES) + 1), |
116 |
sizeof(char)); |
sizeof(char)); |
117 |
strncat(game_dir, root, strlen(root)); |
strncat(game_dir, root, strlen(root)); |
319 |
/*Logit("player_array_init()");*/ |
/*Logit("player_array_init()");*/ |
320 |
player_array_init(); |
player_array_init(); |
321 |
player_init(); |
player_init(); |
322 |
|
|
323 |
|
if(rooms_init()) |
324 |
|
fprintf(stderr, "Problem initing rooms\n"); |
325 |
|
|
326 |
LadderInit(NUM_LADDERS); |
LadderInit(NUM_LADDERS); |
327 |
Ladder9 = LadderNew(LADDERSIZE); |
Ladder9 = LadderNew(LADDERSIZE); |
328 |
Ladder19 = LadderNew(LADDERSIZE); |
Ladder19 = LadderNew(LADDERSIZE); |