Permalink
Browse files

fix #526

  • Loading branch information...
UnknownShadow200 committed Jun 11, 2018
1 parent 47a2ee0 commit 76e5bb61d80ee11fd4da8570f4fbd75bbabae1a6
Showing with 5 additions and 9 deletions.
  1. +2 −1 src/Client/Program.c
  2. +1 −6 src/Client/String.c
  3. +1 −1 src/Client/String.h
  4. +1 −1 src/Client/TexturePack.c
@@ -69,7 +69,8 @@ int main(void) {
String title = String_FromConst(PROGRAM_APP_NAME);
String rawArgs = Platform_GetCommandLineArgs();
rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566");
/* NOTE: Make sure to always comment this back out before pushing a commit */
//rawArgs = String_FromReadonly("UnknownShadow200 fff 127.0.0.1 25566");
String args[5]; UInt32 argsCount = Array_Elems(args);
String_UNSAFE_Split(&rawArgs, ' ', args, &argsCount);
@@ -196,12 +196,7 @@ Int32 String_MakeUInt64(UInt64 num, UInt8* numBuffer) {
return len;
}
bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num) {
if (num < 0) {
num = -num;
if (!String_Append(str, '-')) return false;
}
bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num) {
UInt8 numBuffer[STRING_INT_CHARS];
Int32 i, numLen = String_MakeUInt64(num, numBuffer);
@@ -63,7 +63,7 @@ bool String_Append(STRING_TRANSIENT String* str, UInt8 c);
bool String_AppendBool(STRING_TRANSIENT String* str, bool value);
bool String_AppendInt32(STRING_TRANSIENT String* str, Int32 num);
bool String_AppendUInt32(STRING_TRANSIENT String* str, UInt32 num);
bool String_AppendInt64(STRING_TRANSIENT String* str, Int64 num);
bool String_AppendUInt64(STRING_TRANSIENT String* str, UInt64 num);
bool String_AppendReal32(STRING_TRANSIENT String* str, Real32 num, Int32 fracDigits); /* TODO: Need to account for , or . for decimal */
bool String_Hex32(STRING_TRANSIENT String* str, UInt32 value);
bool String_Hex64(STRING_TRANSIENT String* str, UInt64 value);
@@ -417,7 +417,7 @@ void TextureCache_AddLastModified(STRING_PURE String* url, DateTime* lastModifie
UInt8 dataBuffer[String_BufferSize(STRING_SIZE)];
String data = String_InitAndClearArray(dataBuffer);
String_AppendInt64(&data, ticks);
String_AppendUInt64(&data, ticks);
TextureCache_AddToTags(url, &data, &cache_lastModified);
}

0 comments on commit 76e5bb6

Please sign in to comment.