Browse Source

Fix some typos

pull/202/head^2^2
Martin Hauke 7 years ago committed by Anders Jenbo
parent
commit
6fc09ea8a6
  1. 2
      Source/items.cpp
  2. 4
      Source/msg.cpp
  3. 6
      Source/multi.cpp
  4. 2
      docs/CONTRIBUTING.md
  5. 4
      structs.h

2
Source/items.cpp

@ -303,7 +303,7 @@ void CalcPlrItemVals(int p, BOOL Loadgfx)
int iflgs = 0; // item_special_effect flags
int sadd = 0; // added stregth
int sadd = 0; // added strength
int madd = 0; // added magic
int dadd = 0; // added dexterity
int vadd = 0; // added vitality

4
Source/msg.cpp

@ -109,7 +109,7 @@ void msg_free_packets()
int msg_wait_for_turns()
{
int recieved;
int received;
DWORD turns;
if (!sgbDeltaChunks) {
@ -123,7 +123,7 @@ int msg_wait_for_turns()
multi_process_network_packets();
nthread_send_and_recv_turn(0, 0);
if (nthread_has_500ms_passed(0))
nthread_recv_turns(&recieved);
nthread_recv_turns(&received);
if (gbGameDestroyed)
return 100;

6
Source/multi.cpp

@ -301,7 +301,7 @@ void multi_net_ping()
int multi_handle_delta()
{
int i, recieved;
int i, received;
if (gbGameDestroyed) {
gbRunGame = FALSE;
@ -316,13 +316,13 @@ int multi_handle_delta()
}
sgbSentThisCycle = nthread_send_and_recv_turn(sgbSentThisCycle, 1);
if (!nthread_recv_turns(&recieved)) {
if (!nthread_recv_turns(&received)) {
multi_begin_timeout();
return FALSE;
}
sgbTimeout = FALSE;
if (recieved) {
if (received) {
if (!gbShouldValidatePackage) {
NetSendHiPri(0, 0);
gbShouldValidatePackage = FALSE;

2
docs/CONTRIBUTING.md

@ -51,7 +51,7 @@ void __fastcall drlg_l1_load_dun(char *dun_path, int view_x, int view_y);
### Interactive Disassembler Usage
* Open the `Diablo.exe` (verison 1.09b in IDA) and wait for it to finish
* Open the `Diablo.exe` (version 1.09b in IDA) and wait for it to finish
analysis
* Open as "Portable Executable"
* Processor type i386 (80386)

4
structs.h

@ -501,11 +501,11 @@ typedef struct MonsterData {
char mAi;
int mFlags;
unsigned char mInt;
unsigned char mHit; // BUGFIX: Some monsters overflow this value on high dificulty
unsigned char mHit; // BUGFIX: Some monsters overflow this value on high difficulty
unsigned char mAFNum;
unsigned char mMinDamage;
unsigned char mMaxDamage;
unsigned char mHit2; // BUGFIX: Some monsters overflow this value on high dificulty
unsigned char mHit2; // BUGFIX: Some monsters overflow this value on high difficulty
unsigned char mAFNum2;
unsigned char mMinDamage2;
unsigned char mMaxDamage2;

Loading…
Cancel
Save