Cube  Check-in [57b9a0a9db]

Overview
Comment:Fix player not moving on demo playback

It's still broken, though.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 57b9a0a9db7ea3e3656f9a9d979d1df629783c355cbc46bbe96c3d4befda0bcd
User & Date: js on 2025-03-10 20:39:51
Other Links: manifest | tags
Context
2025-03-10
20:45
Fix server segfaulting on start check-in: 9cb357d9b6 user: js tags: trunk
20:39
Fix player not moving on demo playback check-in: 57b9a0a9db user: js tags: trunk
2025-03-09
22:00
Move ServerInfo to separate file check-in: 53f10f3320 user: js tags: trunk
Changes

Modified src/savegamedemo.mm from [76a6b74abd] to [8ffa70a39e].

475
476
477
478
479
480
481




482

483
484
485
486
487
488
489
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494







+
+
+
+

+








		// insert latest copy of player into history
		if (extras &&
		    (playerhistory.count == 0 ||
		        playerhistory.lastObject.lastupdate != playbacktime)) {
			DynamicEntity *d = [target copy];
			d.lastupdate = playbacktime;

			if (playerhistory == nil)
				playerhistory = [[OFMutableArray alloc] init];

			[playerhistory addObject:d];

			if (playerhistory.count > 20)
				[playerhistory removeObjectAtIndex:0];
		}

		readdemotime();
	}