Fix compile for 4.0.

This commit is contained in:
Relintai 2020-10-06 23:15:49 +02:00
parent cdc8b7830d
commit e992462683
4 changed files with 11 additions and 0 deletions

View File

@ -928,7 +928,11 @@ String Aura::_get_description(const int class_level, const int character_level)
if (pos == str.size() - 1)
break;
#if GODOT4
char32_t o = str[pos + 1];
#else
CharType o = str[pos + 1];
#endif
if (o == '#' || o == '$' || o == '%') {
int nsp = str.find_char(' ', pos + 1);

View File

@ -738,7 +738,11 @@ String Spell::_get_description(const int class_level, const int character_level)
if (pos == str.size() - 1)
break;
#if GODOT4
char32_t o = str[pos + 1];
#else
CharType o = str[pos + 1];
#endif
if (o == '#' || o == '$' || o == '%') {
int nsp = str.find_char(' ', pos + 1);

View File

@ -38,6 +38,7 @@
#define POOL_STRING_ARRAY PACKED_STRING_ARRAY
#define POOL_INT_ARRAY PACKED_INT32_ARRAY
#define POOL_REAL_ARRAY PACKED_FLOAT32_ARRAY
#define Spatial Node3D

View File

@ -26,6 +26,8 @@ SOFTWARE.
#include "../../singletons/ess.h"
#include "../entity.h"
#include "../../defines.h"
int EntityResource::get_id() const {
return _id;
}