Differences From Artifact [ef18048f8b]:
- File src/clients2c.mm — part of check-in [d2b3ff790f] at 2025-03-09 18:57:42 on branch trunk — Convert dynent to a class (user: js, size: 8897) [annotate] [blame] [check-ins using]
To Artifact [1561f54e4a]:
- File
src/clients2c.mm
— part of check-in
[489124a92f]
at
2025-03-16 10:11:39
on branch trunk
— Use one autorelease pool per frame
This way, nowhere else autorelease pools need to be managed. (user: js, size: 8787) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
91 92 93 94 95 96 97 | toservermap = @""; clientnum = cn; // we are now fully connected if (!getint(p)) // we are the first client on this server, set // map toservermap = getclientmap(); sgetstr(); | < | | | < | | | < | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | toservermap = @""; clientnum = cn; // we are now fully connected if (!getint(p)) // we are the first client on this server, set // map toservermap = getclientmap(); sgetstr(); if (text[0] && strcmp(text, clientpassword.UTF8String)) { conoutf(@"you need to set the correct password " @"to join this server!"); disconnect(); return; } if (getint(p) == 1) conoutf(@"server is FULL, disconnecting.."); break; } case SV_POS: { |
︙ | ︙ | |||
146 147 148 149 150 151 152 | case SV_TEXT: sgetstr(); conoutf(@"%@:\f %s", d.name, text); break; case SV_MAPCHANGE: sgetstr(); | < | < | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | case SV_TEXT: sgetstr(); conoutf(@"%@:\f %s", d.name, text); break; case SV_MAPCHANGE: sgetstr(); changemapserv(@(text), getint(p)); mapchanged = true; break; case SV_ITEMLIST: { int n; if (mapchanged) { senditemstoserver = false; |
︙ | ︙ | |||
374 375 376 377 378 379 380 | break; case SV_RECVMAP: { sgetstr(); conoutf(@"received map \"%s\" from server, reloading..", text); int mapsize = getint(p); | < | | | | < | 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | break; case SV_RECVMAP: { sgetstr(); conoutf(@"received map \"%s\" from server, reloading..", text); int mapsize = getint(p); OFString *string = @(text); writemap(string, mapsize, p); p += mapsize; changemapserv(string, gamemode); break; } case SV_SERVMSG: sgetstr(); conoutf(@"%s", text); break; |
︙ | ︙ |