annotate srogue/srogue.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
208
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
2 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
3 <ItemGroup Label="ProjectConfigurations">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
4 <ProjectConfiguration Include="Debug|Win32">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
5 <Configuration>Debug</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
6 <Platform>Win32</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
7 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
8 <ProjectConfiguration Include="Release|Win32">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
9 <Configuration>Release</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
10 <Platform>Win32</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
11 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
12 <ProjectConfiguration Include="Debug|x64">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
13 <Configuration>Debug</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
14 <Platform>x64</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
15 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
16 <ProjectConfiguration Include="Release|x64">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
17 <Configuration>Release</Configuration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
18 <Platform>x64</Platform>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
19 </ProjectConfiguration>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
20 </ItemGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
21 <PropertyGroup Label="Globals">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
22 <ProjectGuid>{FE28341F-1129-4A66-A170-5486CAEF3464}</ProjectGuid>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
23 <RootNamespace>srogue</RootNamespace>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
24 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
25 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
28 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
29 <UseDebugLibraries>true</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
30 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
31 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
32 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
34 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
35 <UseDebugLibraries>false</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
36 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
37 <WholeProgramOptimization>true</WholeProgramOptimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
38 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
39 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
40 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
41 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
42 <UseDebugLibraries>true</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
43 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
44 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
45 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
47 <ConfigurationType>Application</ConfigurationType>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
48 <UseDebugLibraries>false</UseDebugLibraries>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
49 <PlatformToolset>v140</PlatformToolset>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
50 <WholeProgramOptimization>true</WholeProgramOptimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
51 <CharacterSet>MultiByte</CharacterSet>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
52 </PropertyGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
53 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
54 <ImportGroup Label="ExtensionSettings">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
55 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
56 <ImportGroup Label="Shared">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
57 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
58 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
60 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
61 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
62 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
63 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
64 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
65 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
66 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
67 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
68 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
69 </ImportGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
70 <PropertyGroup Label="UserMacros" />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
71 <PropertyGroup />
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
72 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
73 <ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
74 <WarningLevel>Level3</WarningLevel>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
75 <Optimization>Disabled</Optimization>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
76 <SDLCheck>true</SDLCheck>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
77 <AdditionalIncludeDirectories>..\pdcurses</AdditionalIncludeDirectories>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
78 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;SCOREFILE="srogue.scr";%(PreprocessorDefinitions)</PreprocessorDefinitions>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
79 </ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
80 <Link>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
81 <GenerateDebugInformation>true</GenerateDebugInformation>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
82 <AdditionalLibraryDirectories>..\pdcurses</AdditionalLibraryDirectories>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
83 <AdditionalDependencies>pdcurses.lib;%(AdditionalDependencies)</AdditionalDependencies>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
84 </Link>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
85 </ItemDefinitionGroup>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
86 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
87 <ClCompile>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset
88 <WarningLevel>Level3</WarningLevel>
4146e2a06bc1 Update the Visual Studio project files.
John "Elwin" Edwards
parents:
diff changeset