Mercurial > hg > early-roguelike
annotate rogue4/rogue4.vcxproj @ 296:000b1c5b8d63
UltraRogue: fix inventory collision after save and restore.
Inventory letters are based on "identifiers" stored in objects' o_ident
field. Identifiers are allocated by get_ident(), which keeps a list of
objects that have them, to avoid giving the same identifier to multiple
objects.
The list is not stored in the savefile, so after restore, get_ident()
was not aware of existing identifiers. This resulted in picked-up
objects having the same inventory letters as objects restored from the
file.
The restore code now adds all objects with identifiers to the list.
| author | John "Elwin" Edwards |
|---|---|
| date | Mon, 15 Jan 2018 20:20:35 -0500 |
| parents | 23d2e2bf812f |
| children |
| rev | line source |
|---|---|
| 208 | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 <ItemGroup Label="ProjectConfigurations"> | |
| 4 <ProjectConfiguration Include="Debug|Win32"> | |
| 5 <Configuration>Debug</Configuration> | |
| 6 <Platform>Win32</Platform> | |
| 7 </ProjectConfiguration> | |
| 8 <ProjectConfiguration Include="Release|Win32"> | |
| 9 <Configuration>Release</Configuration> | |
| 10 <Platform>Win32</Platform> | |
| 11 </ProjectConfiguration> | |
| 12 <ProjectConfiguration Include="Debug|x64"> | |
| 13 <Configuration>Debug</Configuration> | |
| 14 <Platform>x64</Platform> | |
| 15 </ProjectConfiguration> | |
| 16 <ProjectConfiguration Include="Release|x64"> | |
|
4146e2a06bc1
Update the Visual Studio project files.
John "Elwin" Edwards |
