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