mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
fix missing extern
This commit is contained in:
parent
718aa1b3d1
commit
6b8d5db100
@ -1045,6 +1045,8 @@ bool LocalPlayer_HandlesKey(Key key) {
|
|||||||
/*########################################################################################################################*
|
/*########################################################################################################################*
|
||||||
*-------------------------------------------------------NetPlayer---------------------------------------------------------*
|
*-------------------------------------------------------NetPlayer---------------------------------------------------------*
|
||||||
*#########################################################################################################################*/
|
*#########################################################################################################################*/
|
||||||
|
struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
|
||||||
|
|
||||||
static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* update, bool interpolate) {
|
static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* update, bool interpolate) {
|
||||||
struct NetPlayer* p = (struct NetPlayer*)e;
|
struct NetPlayer* p = (struct NetPlayer*)e;
|
||||||
NetInterpComp_SetLocation(&p->Interp, update, interpolate);
|
NetInterpComp_SetLocation(&p->Interp, update, interpolate);
|
||||||
|
@ -142,7 +142,7 @@ struct NetPlayer {
|
|||||||
bool ShouldRender;
|
bool ShouldRender;
|
||||||
};
|
};
|
||||||
void NetPlayer_Init(struct NetPlayer* player, const String* displayName, const String* skinName);
|
void NetPlayer_Init(struct NetPlayer* player, const String* displayName, const String* skinName);
|
||||||
struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
|
extern struct NetPlayer NetPlayers_List[ENTITIES_SELF_ID];
|
||||||
|
|
||||||
/* Represents the user/player's own entity. */
|
/* Represents the user/player's own entity. */
|
||||||
struct LocalPlayer {
|
struct LocalPlayer {
|
||||||
|
@ -8,12 +8,15 @@
|
|||||||
#include "AsyncDownloader.h"
|
#include "AsyncDownloader.h"
|
||||||
#include "Bitmap.h"
|
#include "Bitmap.h"
|
||||||
|
|
||||||
|
#define FT_EXPORT(x) extern x
|
||||||
#include "freetype/ft2build.h"
|
#include "freetype/ft2build.h"
|
||||||
#include "freetype/freetype.h"
|
#include "freetype/freetype.h"
|
||||||
#include "freetype/ftmodapi.h"
|
#include "freetype/ftmodapi.h"
|
||||||
|
|
||||||
static void Platform_InitDisplay(void);
|
static void Platform_InitDisplay(void);
|
||||||
static void Platform_InitStopwatch(void);
|
static void Platform_InitStopwatch(void);
|
||||||
|
struct DisplayDevice DisplayDevice_Default;
|
||||||
|
void* DisplayDevice_Meta;
|
||||||
|
|
||||||
#ifdef CC_BUILD_WIN
|
#ifdef CC_BUILD_WIN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
@ -36,8 +36,8 @@ extern const ReturnCode ReturnCode_InvalidArg;
|
|||||||
|
|
||||||
/* Data for a display device. (usually a monitor) */
|
/* Data for a display device. (usually a monitor) */
|
||||||
struct DisplayDevice { int BitsPerPixel; Rect2D Bounds; };
|
struct DisplayDevice { int BitsPerPixel; Rect2D Bounds; };
|
||||||
struct DisplayDevice DisplayDevice_Default;
|
extern struct DisplayDevice DisplayDevice_Default;
|
||||||
void* DisplayDevice_Meta;
|
extern void* DisplayDevice_Meta;
|
||||||
|
|
||||||
struct GraphicsMode {
|
struct GraphicsMode {
|
||||||
int R,G,B,A, BitsPerPixel, IsIndexed; /* Colour buffer data */
|
int R,G,B,A, BitsPerPixel, IsIndexed; /* Colour buffer data */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user