Skip to content

Commit c83f47c

Browse files
committed
edits?
1 parent 43eee6d commit c83f47c

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

offstyledb.sp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#define API_BASE_URL "https://offstyles.tommyy.dev/api"
88

9-
#pragma dynamic 0x20000000
9+
#pragma dynamic 104857600
1010
#pragma newdecls required
1111
#pragma semicolon 1
1212

@@ -191,15 +191,15 @@ void GetStyleMapping(bool forceRefresh = false)
191191

192192
if (fFile != null && fFile.Seek(0, SEEK_END))
193193
{
194-
int iSize = (fFile.Position + 1);
194+
int iSize = fFile.Position;
195195
fFile.Seek(0, SEEK_SET);
196196

197197
char[] sFileContents = new char[iSize + 1];
198-
fFile.ReadString(sFileContents, (iSize + 1), iSize);
198+
fFile.ReadString(sFileContents, iSize + 1, iSize);
199199
delete fFile;
200200

201201
char[] sFileContentsEncoded = new char[iSize * 2];
202-
Crypt_Base64Encode(sFileContents, sFileContentsEncoded, (iSize * 2), iSize);
202+
Crypt_Base64Encode(sFileContents, sFileContentsEncoded, iSize * 2, iSize);
203203

204204
hJSONObject.SetString("data", sFileContentsEncoded);
205205
}
@@ -682,15 +682,15 @@ void SendRecordWithReplay(char[] sMap, char[] sSteamID, char[] sName, int sDate,
682682

683683
if (fFile != null && fFile.Seek(0, SEEK_END))
684684
{
685-
int iSize = (fFile.Position + 1);
685+
int iSize = fFile.Position;
686686
fFile.Seek(0, SEEK_SET);
687687

688688
char[] sFileContents = new char[iSize + 1];
689-
fFile.ReadString(sFileContents, (iSize + 1), iSize);
689+
fFile.ReadString(sFileContents, iSize + 1, iSize);
690690
delete fFile;
691691

692692
char[] sFileContentsEncoded = new char[iSize * 2];
693-
Crypt_Base64Encode(sFileContents, sFileContentsEncoded, (iSize * 2), iSize);
693+
Crypt_Base64Encode(sFileContents, sFileContentsEncoded, iSize * 2, iSize);
694694

695695
hJSON.SetString("replayfile", sFileContentsEncoded);
696696
DebugPrint("[OSdb] Replay file successfully encoded and attached");

0 commit comments

Comments
 (0)