forked from PopRe/Pop-World-Editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
std.h
62 lines (46 loc) · 1.4 KB
/
std.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#pragma once
/*
Alacn
http://alacn.dnsalias.org:8080/
*/
#include "enet/enet.h"
//#pragma comment(lib, __FILE__"\\..\\enet\\enet.lib")
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "winmm.lib")
#define STR_SIZE 256
#define _WIN32_WINDOWS 0x0500
#pragma comment(lib, "comctl32.lib")
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <thread>
#include <sstream>
#include <iostream>
#include <string>
#ifdef _DEBUG
#include <assert.h>
#endif
#include "resource.h"
#include "version.h"
#pragma comment(lib, "shlwapi.lib")
#include <shlwapi.h>
#define LINK(list, add) { if(list) { add->Prev = list->Prev; add->Next = list; list->Prev->Next = add; list->Prev = add; } else { list = add; add->Next = add->Prev = add; } }
#define UNLINK(list, del) { del->Next->Prev = del->Prev; del->Prev->Next = del->Next; if(list == del) { list = del->Next; if(list == del) list = 0; } del->Next = 0; del->Prev = 0; }
// build flags
#define USE_FOG 1
#define USE_NEW_VIEW 1
#define SPHERICAL_WORLD 1
#ifdef _DEBUG
#define DEBUG 1
#define DRAW_OBJECTS_LINES 0
#define DRAW_MINIMAP_LINES 0
#define DRAW_OBJECTS_NORMALS 0
#define DRAW_SPRITE_BOUNDBOXES 1
#else // _DEBUG
#define DEBUG 0
#define DRAW_OBJECTS_LINES 0
#define DRAW_MINIMAP_LINES 0
#define DRAW_OBJECTS_NORMALS 0
#define DRAW_SPRITE_BOUNDBOXES 0
#endif // _DEBUG