1 /* Reduced from linuxdoom-1.10's p_floor.c (GPLv2). */
4 #define FRACUNIT (1<<FRACBITS)
6 #define FLOORSPEED FRACUNIT
9 typedef struct line_s line_t;
27 fixed_t floordestheight;
31 extern sector_t* sectors;
33 void* Z_Malloc (int size, int tag, void *ptr);
36 P_FindSectorFromLineTag
60 while ((secnum = P_FindSectorFromLineTag(line,secnum)) >= 0)
62 sec = §ors[secnum];
67 floor = Z_Malloc (sizeof(*floor), PU_LEVSPEC, 0);
75 stairsize = 8*FRACUNIT;
79 stairsize = 16*FRACUNIT;
82 floor->speed = speed; /* { dg-bogus "use of uninitialized value 'speed'" } */
83 height = sec->floorheight + stairsize; /* { dg-bogus "use of uninitialized value 'stairsize'" } */
84 floor->floordestheight = height;