Creates the player object in the center of the given room
| 1344 | |
| 1345 | // Creates the player object in the center of the given room |
| 1346 | void CreatePlayerObject(int roomnum) { |
| 1347 | int objnum; |
| 1348 | vector pos; |
| 1349 | |
| 1350 | ComputeRoomCenter(&pos, &Rooms[roomnum]); |
| 1351 | |
| 1352 | objnum = ObjCreate(OBJ_PLAYER, 0, roomnum, &pos, NULL); |
| 1353 | |
| 1354 | ASSERT(objnum == 0); // player must be object 0 |
| 1355 | |
| 1356 | Player_object = Viewer_object = &Objects[objnum]; |
| 1357 | } |
| 1358 | |
| 1359 | void InitBigObjects() { Num_big_objects = 0; } |
| 1360 |
no test coverage detected