mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 09:06:55 -04:00
fix spelling (thanks SpiralP)
This commit is contained in:
parent
17cd3c9ea1
commit
45c9a9236e
@ -10,7 +10,6 @@
|
||||
#include "Utils.h"
|
||||
#include "Game.h"
|
||||
#include "Logger.h"
|
||||
#include "Stream.h"
|
||||
#include "Block.h"
|
||||
#include "Event.h"
|
||||
#include "TexturePack.h"
|
||||
|
@ -12,7 +12,7 @@ static struct VertexTextured* iso_vertices;
|
||||
static struct VertexTextured* iso_vertices_base;
|
||||
static GfxResourceID iso_vb;
|
||||
|
||||
static cc_bool iso_cacheInitalised;
|
||||
static cc_bool iso_cacheInited;
|
||||
static PackedCol iso_col = PACKEDCOL_WHITE;
|
||||
static PackedCol iso_colXSide, iso_colZSide, iso_colYBottom;
|
||||
|
||||
@ -39,9 +39,9 @@ static void IsometricDrawer_RotateY(float cosA, float sinA) {
|
||||
|
||||
static void IsometricDrawer_InitCache(void) {
|
||||
struct Matrix rotY, rotX;
|
||||
if (iso_cacheInitalised) return;
|
||||
if (iso_cacheInited) return;
|
||||
|
||||
iso_cacheInitalised = true;
|
||||
iso_cacheInited = true;
|
||||
PackedCol_GetShaded(iso_col, &iso_colXSide, &iso_colZSide, &iso_colYBottom);
|
||||
|
||||
Matrix_RotateY(&rotY, 45.0f * MATH_DEG2RAD);
|
||||
|
@ -386,9 +386,9 @@ static void MakeModel(struct Model* model) {
|
||||
Models.Active = model;
|
||||
model->MakeParts();
|
||||
|
||||
model->initalised = true;
|
||||
model->index = 0;
|
||||
Models.Active = active;
|
||||
model->inited = true;
|
||||
model->index = 0;
|
||||
Models.Active = active;
|
||||
}
|
||||
|
||||
struct Model* Model_Get(const String* name) {
|
||||
@ -397,7 +397,7 @@ struct Model* Model_Get(const String* name) {
|
||||
for (model = models_head; model; model = model->next) {
|
||||
if (!String_CaselessEqualsConst(name, model->name)) continue;
|
||||
|
||||
if (!model->initalised) MakeModel(model);
|
||||
if (!model->inited) MakeModel(model);
|
||||
return model;
|
||||
}
|
||||
return NULL;
|
||||
|
@ -66,7 +66,7 @@ struct Model {
|
||||
int index;
|
||||
cc_uint8 armX, armY; /* these translate arm model part back to (0, 0) */
|
||||
|
||||
cc_bool initalised;
|
||||
cc_bool inited;
|
||||
/* Whether the model should be slightly bobbed up and down when rendering. */
|
||||
/* e.g. for HumanoidModel, when legs are at the peak of their swing, whole model is moved slightly down */
|
||||
cc_bool bobbing;
|
||||
|
@ -35,7 +35,7 @@ extern const cc_result ReturnCode_SocketWouldBlock;
|
||||
/* Returns the number of bytes written, excluding trailing NULL terminator. */
|
||||
CC_API int Platform_ConvertString(void* data, const String* src);
|
||||
|
||||
/* Initalises the platform specific state. */
|
||||
/* Initialises the platform specific state. */
|
||||
void Platform_Init(void);
|
||||
/* Frees the platform specific state. */
|
||||
void Platform_Free(void);
|
||||
@ -207,7 +207,7 @@ CC_API cc_result Socket_SetBlocking(SocketHandle socket, cc_bool blocking);
|
||||
/* Returns (and resets) the last error generated by the given socket. */
|
||||
CC_API cc_result Socket_GetError(SocketHandle socket, cc_result* result);
|
||||
|
||||
/* Attempts to initalise a connection to the given IP address:port. */
|
||||
/* Attempts to open a connection to the given IP address:port. */
|
||||
CC_API cc_result Socket_Connect(SocketHandle socket, const String* ip, int port);
|
||||
/* Attempts to read data from the given socket. */
|
||||
CC_API cc_result Socket_Read(SocketHandle socket, cc_uint8* data, cc_uint32 count, cc_uint32* modified);
|
||||
|
@ -43,7 +43,7 @@ struct Stream {
|
||||
CC_API cc_result Stream_Read(struct Stream* s, cc_uint8* buffer, cc_uint32 count);
|
||||
/* Attempts to fully write up to count bytes from the stream. */
|
||||
CC_API cc_result Stream_Write(struct Stream* s, const cc_uint8* buffer, cc_uint32 count);
|
||||
/* Initalises default function pointers for a stream. (all read, write, seeks return an error) */
|
||||
/* Initialises default function pointers for a stream. (all read, write, seeks return an error) */
|
||||
void Stream_Init(struct Stream* s);
|
||||
/* Slow way of reading a U8 integer through stream->Read(stream, 1, tmp). */
|
||||
cc_result Stream_DefaultReadU8(struct Stream* s, cc_uint8* data);
|
||||
|
@ -777,7 +777,7 @@ String StringsBuffer_UNSAFE_Get(struct StringsBuffer* buffer, int i) {
|
||||
|
||||
void StringsBuffer_Add(struct StringsBuffer* buffer, const String* str) {
|
||||
int textOffset;
|
||||
/* StringsBuffer hasn't been initalised yet, do it here */
|
||||
/* StringsBuffer hasn't been initialised yet, do it here */
|
||||
if (!buffer->_flagsCapacity) StringsBuffer_Init(buffer);
|
||||
|
||||
if (buffer->count == buffer->_flagsCapacity) {
|
||||
|
@ -35,16 +35,16 @@ static float L_soupHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static float L_potHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static float L_flameHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static RNGState L_rnd;
|
||||
static cc_bool L_rndInitalised;
|
||||
static cc_bool L_rndInited;
|
||||
|
||||
static void LavaAnimation_Tick(BitmapCol* ptr, int size) {
|
||||
int mask = size - 1, shift = Math_Log2(size);
|
||||
float soupHeat, potHeat, col;
|
||||
int x, y, i = 0;
|
||||
|
||||
if (!L_rndInitalised) {
|
||||
if (!L_rndInited) {
|
||||
Random_SeedFromCurrentTime(&L_rnd);
|
||||
L_rndInitalised = true;
|
||||
L_rndInited = true;
|
||||
}
|
||||
|
||||
for (y = 0; y < size; y++) {
|
||||
@ -106,16 +106,16 @@ static float W_soupHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static float W_potHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static float W_flameHeat[LIQUID_ANIM_MAX * LIQUID_ANIM_MAX];
|
||||
static RNGState W_rnd;
|
||||
static cc_bool W_rndInitalised;
|
||||
static cc_bool W_rndInited;
|
||||
|
||||
static void WaterAnimation_Tick(BitmapCol* ptr, int size) {
|
||||
int mask = size - 1, shift = Math_Log2(size);
|
||||
float soupHeat, col;
|
||||
int x, y, i = 0;
|
||||
|
||||
if (!W_rndInitalised) {
|
||||
if (!W_rndInited) {
|
||||
Random_SeedFromCurrentTime(&W_rnd);
|
||||
W_rndInitalised = true;
|
||||
W_rndInited = true;
|
||||
}
|
||||
|
||||
for (y = 0; y < size; y++) {
|
||||
|
@ -125,7 +125,7 @@ const cc_uint32 Utils_Crc32Table[256] = {
|
||||
};
|
||||
|
||||
void Utils_Resize(void** buffer, int* capacity, cc_uint32 elemSize, int defCapacity, int expandElems) {
|
||||
/* We use a statically allocated buffer initally, so can't realloc first time */
|
||||
/* We use a statically allocated buffer initially, so can't realloc first time */
|
||||
int curCapacity = *capacity, newCapacity = curCapacity + expandElems;
|
||||
*capacity = newCapacity;
|
||||
|
||||
|
@ -71,7 +71,7 @@ CC_VAR extern struct _WinData {
|
||||
cc_bool SoftKeyboard;
|
||||
} WindowInfo;
|
||||
|
||||
/* Initalises state for window. Also sets Display_ members. */
|
||||
/* Initialises state for window. Also sets Display_ members. */
|
||||
void Window_Init(void);
|
||||
/* Creates the window as the given size at centre of the screen. */
|
||||
void Window_Create(int width, int height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user