Skip to content

Commit

Permalink
Added back DD_GAME_EXPORTS as I need it for something I'm tinkering at.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Jul 2, 2008
1 parent 879cfc8 commit cae5d7a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
21 changes: 11 additions & 10 deletions doomsday/engine/api/dd_share.h
Expand Up @@ -274,6 +274,7 @@ extern "C" {
DD_WINDOW_HEIGHT,
DD_WINDOW_HANDLE,
DD_DYNLIGHT_TEXTURE,
DD_GAME_EXPORTS,
DD_SECTOR_COUNT,
DD_LINE_COUNT,
DD_SIDE_COUNT,
Expand Down Expand Up @@ -490,10 +491,10 @@ extern "C" {
// Control classes.
typedef enum
{
CC_AXIS,
CC_TOGGLE,
CC_IMPULSE,
NUM_CONTROL_CLASSES
CC_AXIS,
CC_TOGGLE,
CC_IMPULSE,
NUM_CONTROL_CLASSES
} ctlclass_t;

//------------------------------------------------------------------------
Expand Down Expand Up @@ -1233,12 +1234,12 @@ typedef struct {
* maybe commit suicide.
*/
typedef struct ticcmd_s {
char forwardMove; // *2048 for real move
char sideMove; // *2048 for real move
char upMove; // *2048 for real move
unsigned short angle; // <<16 for angle (view angle)
short pitch; // View pitch
short actions; // On/off action flags
char forwardMove; // *2048 for real move
char sideMove; // *2048 for real move
char upMove; // *2048 for real move
unsigned short angle; // <<16 for angle (view angle)
short pitch; // View pitch
short actions; // On/off action flags
} ticcmd_t;

// Network Player Events
Expand Down
5 changes: 4 additions & 1 deletion doomsday/engine/portable/src/dd_main.c
Expand Up @@ -193,7 +193,7 @@ void DD_AddIWAD(const char *path)
static void AddToWadList(char *list)
{
size_t len = strlen(list);
char *buffer = M_Malloc(len + 1), *token;
char *buffer = M_Malloc(len + 1), *token;

strcpy(buffer, list);
token = strtok(buffer, ATWSEPS);
Expand Down Expand Up @@ -923,6 +923,9 @@ void* DD_GetVariable(int ddvalue)
// How about some specials?
switch(ddvalue)
{
case DD_GAME_EXPORTS:
return &gx;

case DD_SKYMASKMATERIAL_NUM:
if(skyMaskMaterial)
return &skyMaskMaterial->ofTypeID;
Expand Down

0 comments on commit cae5d7a

Please sign in to comment.