Skip to content

Commit 9ca6e7e

Browse files
committed
add Licence.txt
This file is originally only packed-in with executable in OG repo. Tweaked MoH patch a little.
1 parent 2a5a5b8 commit 9ca6e7e

2 files changed

Lines changed: 27 additions & 5 deletions

File tree

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Copyright (c) 2005-2012 Ryan C. Gordon and others.
3+
4+
This software is provided 'as-is', without any express or implied warranty.
5+
In no event will the authors be held liable for any damages arising from
6+
the use of this software.
7+
8+
Permission is granted to anyone to use this software for any purpose,
9+
including commercial applications, and to alter it and redistribute it
10+
freely, subject to the following restrictions:
11+
12+
1. The origin of this software must not be misrepresented; you must not
13+
claim that you wrote the original software. If you use this software in a
14+
product, an acknowledgment in the product documentation would be
15+
appreciated but is not required.
16+
17+
2. Altered source versions must be plainly marked as such, and must not be
18+
misrepresented as being the original software.
19+
20+
3. This notice may not be removed or altered from any source distribution.
21+
22+
Ryan C. Gordon <icculus@icculus.org>
23+

games/ps1_moh.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,16 @@ static void PS1_MOH_Inject(void)
123123

124124
//paimYF = ClampFloat(paimYF, -2842528.f, 2842528.f);
125125
//paimYF = ClampFloat(paimYF, -3842528.f, 3842528.f);
126-
//if (paimYF > -984040.f && paimYF < 984040.f) {
126+
/*if (paimYF > -984040.f && paimYF < 984040.f) {
127127
uint8_t stick_y = PS1_MEM_ReadByte(MOH_RIGHT_STICK_Y_OFFSET); // this needs a rewrite, it jumps from two states nothing in between, it sucks ass
128128
if (ymouse < 0)
129129
stick_y = 0x0;
130130
else
131131
stick_y = 0xFF;
132+
PS1_MEM_WriteByte(MOH_RIGHT_STICK_Y_OFFSET2, stick_y); //i guess this input must be there to scroll, logic could be that if paimY is near the range input right stick input, or check the instructions... naahh
133+
}*/
132134

133-
//PS1_MEM_WriteByte(MOH_RIGHT_STICK_Y_OFFSET2, stick_y); //i guess this input must be there to scroll, logic could be that if paimY is near the range input right stick input, or check the instructions... naahh
134-
//}
135-
136-
//PS1_MEM_WriteInt(camBase+MOH_CAMY_PAIM_OFFSET, (int32_t)paimYF);
135+
PS1_MEM_WriteInt(camBase+MOH_CAMY_PAIM_OFFSET, (int32_t)paimYF);
137136
PS1_MEM_WriteInt(camBase + MOH_CAMX_PAIM_OFFSET, (int32_t)paimXF);
138137
}
139138
else {

0 commit comments

Comments
 (0)