Changeset 9fe1807 in network-game


Ignore:
Timestamp:
Jul 26, 2013, 6:33:18 PM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
1df6bec
Parents:
46d6469
Message:

Added MessageContainer to the VC++ project

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • client/Client/Client.vcxproj

    r46d6469 r9fe1807  
    4747      <GenerateDebugInformation>true</GenerateDebugInformation>
    4848      <AdditionalLibraryDirectories>c:\allegro\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    49       <AdditionalDependencies>allegro-5.0.8-monolith-md-debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
     49      <AdditionalDependencies>allegro-5.0.9-monolith-md-debug.lib;%(AdditionalDependencies)</AdditionalDependencies>
    5050    </Link>
    5151  </ItemDefinitionGroup>
     
    6868  <ItemGroup>
    6969    <ClCompile Include="..\..\common\Common.cpp" />
     70    <ClCompile Include="..\..\common\MessageContainer.cpp" />
    7071    <ClCompile Include="..\..\common\MessageProcessor.cpp" />
    7172    <ClCompile Include="..\..\common\Projectile.cpp" />
     
    8485    <ClInclude Include="..\..\common\Common.h" />
    8586    <ClInclude Include="..\..\common\Compiler.h" />
     87    <ClInclude Include="..\..\common\MessageContainer.h" />
    8688    <ClInclude Include="..\..\common\MessageProcessor.h" />
    8789    <ClInclude Include="..\..\common\Projectile.h" />
  • client/Client/Client.vcxproj.filters

    r46d6469 r9fe1807  
    6767      <Filter>Source Files\gui</Filter>
    6868    </ClCompile>
     69    <ClCompile Include="..\..\common\MessageContainer.cpp">
     70      <Filter>Source Files\common</Filter>
     71    </ClCompile>
    6972  </ItemGroup>
    7073  <ItemGroup>
     
    108111      <Filter>Header Files\gui</Filter>
    109112    </ClInclude>
     113    <ClInclude Include="..\..\common\MessageContainer.h">
     114      <Filter>Header Files\common</Filter>
     115    </ClInclude>
    110116  </ItemGroup>
    111117  <ItemGroup>
  • common/MessageProcessor.cpp

    r46d6469 r9fe1807  
    7373      for (it2 = sentMsg.begin(); it2 != sentMsg.end(); it2++) {
    7474         if (!(it2->second.getAcked())) {
    75             sendto(sock, it2->second.getMessage(), sizeof(NETWORK_MSG), 0, (struct sockaddr *)&it2->first, sizeof(struct sockaddr_in));
     75            sendto(sock, (const char*)it2->second.getMessage(), sizeof(NETWORK_MSG), 0, (struct sockaddr *)&it2->first, sizeof(struct sockaddr_in));
    7676         }
    7777      }
Note: See TracChangeset for help on using the changeset viewer.