Skip to content

Commit dbb9b68

Browse files
committed
Fix clang tidy include error
1 parent 22b53aa commit dbb9b68

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/server/ddnet_callback_ctx.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <twbl/teeworlds/character.h>
22
#include <twbl/teeworlds/gamecontext.h>
3+
#include <twbl/teeworlds/protocol.h>
34

45
#include "ddnet_callback_ctx.h"
56

src/twbl/teeworlds/protocol.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
#ifndef TWBL_SRC_TWBL_PROTOCOL_H
22
#define TWBL_SRC_TWBL_PROTOCOL_H
33

4+
#if __has_include(<engine/shared/protocol.h>)
5+
#include <engine/shared/protocol.h>
6+
#else
7+
enum
8+
{
9+
MAX_CLIENTS = 128,
10+
};
11+
#endif
12+
413
#if __has_include(<game/generated/protocol.h>)
514
#include <game/generated/protocol.h>
615
#else
@@ -21,6 +30,11 @@ enum
2130
NUM_WEAPONS
2231
};
2332

33+
enum
34+
{
35+
WEAPON_SELF = -2,
36+
};
37+
2438
enum
2539
{
2640
EMOTICON_OOP,

0 commit comments

Comments
 (0)