Skip to content

Commit

Permalink
Fixed up msvc'isms in my last commit (that gcc didn't seem to like).
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Oct 27, 2007
1 parent 4349545 commit f4443da
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions doomsday/engine/portable/include/bsp_level.h
Expand Up @@ -35,6 +35,8 @@
#ifndef __BSP_LEVEL_H__
#define __BSP_LEVEL_H__

#include "p_mapdata.h"

struct node_s;
struct sector_s;
struct superblock_s;
Expand Down Expand Up @@ -144,8 +146,8 @@ msector_t *LookupSector(int index);
msubsec_t *LookupSubsec(int index);

// Load all level data for the current level.
void LoadMap(struct gamemap_s *map);
void CleanMap(struct gamemap_s *map);
void LoadMap(gamemap_t *map);
void CleanMap(gamemap_t *map);

// Free all level data.
void FreeMap(void);
Expand Down
4 changes: 3 additions & 1 deletion doomsday/engine/portable/include/bsp_main.h
Expand Up @@ -34,10 +34,12 @@
#ifndef __BSP_MAIN_H__
#define __BSP_MAIN_H__

#include "p_mapdata.h"

typedef double angle_g; // Degrees, 0 is E, 90 is N

extern int bspFactor;

void BSP_Register(void);
boolean BSP_Build(struct gamemap_s *map);
boolean BSP_Build(gamemap_t *map);
#endif
7 changes: 4 additions & 3 deletions doomsday/engine/portable/include/bsp_node.h
Expand Up @@ -34,6 +34,8 @@
#ifndef __BSP_NODE_H__
#define __BSP_NODE_H__

#include "p_mapdata.h"

typedef struct child_s {
// Child node or subsector (one must be NULL).
struct mnode_s *node;
Expand Down Expand Up @@ -65,9 +67,6 @@ extern int numNodes;
mnode_t *NewNode(void);
mnode_t *LookupNode(int index);

// Save the newly computed NODE info etc..
void SaveMap(struct gamemap_s *map, mnode_t *rootNode);

int BoxOnLineSide(struct superblock_s *box, struct hedge_s *part);

boolean BuildNodes(struct superblock_s *hEdgeList, mnode_t **n, msubsec_t **s,
Expand All @@ -76,4 +75,6 @@ void BSP_AddHEdgeToSuperBlock(struct superblock_s *block, struct hedge_s

int ComputeBspHeight(mnode_t *node);
void ClockwiseBspTree(mnode_t *root);

void SaveMap(gamemap_t *map, mnode_t *rootNode);
#endif

0 comments on commit f4443da

Please sign in to comment.